From b9bc59cbf46c61cc58ecbd6cacc47307d1a9172a Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 3 Aug 2015 10:16:01 +1000 Subject: [PATCH] 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 --- include/platform_defs.h.in | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2