Whamcloud - gitweb
Add missing #include for string.h to ext2fs.h to fix GCC 4.01 complaints
authorTheodore Ts'o <tytso@mit.edu>
Mon, 14 Nov 2005 19:49:15 +0000 (14:49 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Nov 2005 19:49:15 +0000 (14:49 -0500)
#include <string.h> is needed since the inline functions use memcpy().
(Addresses Sourceforge Bug #1251062)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ChangeLog
lib/ext2fs/ext2fs.h

index 93eccb3..40793f9 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-13  Theodore Ts'o  <tytso@mit.edu>
+
+       * ext2fs.h: Add #include <string.h> since the inline functions use
+               memcpy().  (Addresses Sourceforge Bug #1251062)
+
 2005-11-09  Theodore Ts'o  <tytso@mit.edu>
 
        * Fix a bug when writing an external journal device on an big
index c573af3..d70e1b0 100644 (file)
@@ -60,6 +60,7 @@ extern "C" {
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #if EXT2_FLAT_INCLUDES
 #include "e2_types.h"