tests: as per CODING_STYLE undefine basename() right after including libgen.h

This commit is contained in:
Lennart Poettering 2018-10-24 17:06:28 +02:00
parent eca27ebbc8
commit 795919efdf

View file

@ -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"