From: Theodore Ts'o Date: Mon, 3 Aug 2015 00:16:01 +0000 (+1000) Subject: xfsprogs: pull in libgen.h to get prototype for basename() X-Git-Tag: v4.2.0-rc1~2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9bc59cbf46c61cc58ecbd6cacc47307d1a9172a;p=thirdparty%2Fxfsprogs-dev.git xfsprogs: pull in libgen.h to get prototype for basename() The function prototype for basename() is in , 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 Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/include/platform_defs.h.in b/include/platform_defs.h.in index 574b67f3f..30dd7a473 100644 --- a/include/platform_defs.h.in +++ b/include/platform_defs.h.in @@ -35,6 +35,7 @@ #include #include #include +#include typedef struct filldir filldir_t;