Whamcloud - gitweb
libext2fs: include config.h for HAVE_xxx defines
authorMike Frysinger <vapier@gentoo.org>
Mon, 27 Feb 2012 06:12:53 +0000 (01:12 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 27 Feb 2012 06:12:53 +0000 (01:12 -0500)
We check HAVE_UNISTD_H but haven't included config.h yet, so we end up
hitting warnings about missing prototypes for close/read/etc... funcs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/mmp.c

index b27d9a4..49a11da 100644 (file)
@@ -13,6 +13,8 @@
 #define _GNU_SOURCE
 #endif
 
+#include "config.h"
+
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif