]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: pull in libgen.h to get prototype for basename()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 3 Aug 2015 00:16:01 +0000 (10:16 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 3 Aug 2015 00:16:01 +0000 (10:16 +1000)
The function prototype for basename() is in <libgen.h>, per Posix.
Without the the function prototype, the build will throw errors due to
the missing prototype.

On glibc, using libgen.h will force the use of Poxis's basename(),
instead of glibc's basename() with GNU extensions.  However, xfsprogs
doesn't depend on any of the GNU extensions, so this is fine.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/platform_defs.h.in

index 574b67f3febf59d65284b9eb0451ad8bd997bdbd..30dd7a4730b992d95b586595c04c2f577409aee0 100644 (file)
@@ -35,6 +35,7 @@
 #include <sys/types.h>
 #include <limits.h>
 #include <stdbool.h>
+#include <libgen.h>
 
 typedef struct filldir         filldir_t;