mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 20:25:38 +03:00
tests: as per CODING_STYLE undefine basename() right after including libgen.h
This commit is contained in:
parent
eca27ebbc8
commit
795919efdf
@ -1,9 +1,14 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||
|
||||
#include <libgen.h>
|
||||
#include <stdlib.h>
|
||||
#include <util.h>
|
||||
|
||||
/* When we include libgen.h because we need dirname() we immediately
|
||||
* undefine basename() since libgen.h defines it as a macro to the POSIX
|
||||
* version which is really broken. We prefer GNU basename(). */
|
||||
#include <libgen.h>
|
||||
#undef basename
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "env-util.h"
|
||||
#include "fileio.h"
|
||||
|
Loading…
Reference in New Issue
Block a user