Whamcloud - gitweb
Fix a couple of implicit function declarations
authorEric Sandeen <sandeen@redhat.com>
Sun, 30 Mar 2008 04:01:52 +0000 (23:01 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Apr 2008 21:20:12 +0000 (17:20 -0400)
Fedora seems to be gearing up to add
-Werror-implicit-function-declaration
to the standard build flags, so I thought I'd get out ahead
of this one...

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c
lib/ext2fs/bitops.h

index 93af87b..1ad3ae0 100644 (file)
@@ -47,6 +47,7 @@ extern int optind;
 #endif
 
 #include "et/com_err.h"
+#include "e2p/e2p.h"
 #include "e2fsck.h"
 #include "problem.h"
 #include "../version.h"
index d83ce8e..00bc4ab 100644 (file)
@@ -332,6 +332,7 @@ _INLINE_ __u32 ext2fs_swab32(__u32 val)
 #endif /* !_EXT2_HAVE_ASM_SWAB */
 
 #if !defined(_EXT2_HAVE_ASM_FINDBIT_)
+#include <strings.h>
 _INLINE_ int ext2fs_find_first_bit_set(void * addr, unsigned size)
 {
        char    *cp = (char *) addr;