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@xxxxxxx> --- 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 3e059af..bfab7cc 100644 --- a/include/platform_defs.h.in +++ b/include/platform_defs.h.in @@ -35,6 +35,7 @@ #include <sys/types.h> #include <limits.h> #include <stdbool.h> +#include <libgen.h> #undef HAVE___U32 #ifdef HAVE___U32 -- 2.3.0 _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs