Patchwork libext2fs: include config.h for HAVE_xxx defines

login
register
mail settings
Submitter Mike Frysinger
Date Feb. 24, 2012, 5:18 p.m.
Message ID <1330103888-7005-2-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/142955/
State Accepted
Headers show

Comments

Mike Frysinger - Feb. 24, 2012, 5:18 p.m.
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>
---
 lib/ext2fs/mmp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Theodore Ts'o - Feb. 27, 2012, 6:13 a.m.
On Fri, Feb 24, 2012 at 12:18:08PM -0500, Mike Frysinger wrote:
> 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>

Thanks, applied.

						- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/lib/ext2fs/mmp.c b/lib/ext2fs/mmp.c
index b27d9a4..49a11da 100644
--- a/lib/ext2fs/mmp.c
+++ b/lib/ext2fs/mmp.c
@@ -13,6 +13,8 @@ 
 #define _GNU_SOURCE
 #endif
 
+#include "config.h"
+
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif