aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2005-11-14 14:49:15 -0500
committerTheodore Ts'o <tytso@mit.edu>2005-11-14 14:49:15 -0500
commita82a57025c4368de330ecac9a430d84137ae2268 (patch)
treef8e937236cc59b01b5f7fe6b5516162cca5e7ae3
parenta519836a29f1cc9610337f48b677a0c5440624c2 (diff)
downloade2fsprogs-a82a57025c4368de330ecac9a430d84137ae2268.tar.gz
e2fsprogs-a82a57025c4368de330ecac9a430d84137ae2268.tar.xz
e2fsprogs-a82a57025c4368de330ecac9a430d84137ae2268.zip
Add missing #include for string.h to ext2fs.h to fix GCC 4.01 complaints
#include <string.h> is needed since the inline functions use memcpy(). (Addresses Sourceforge Bug #1251062) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--lib/ext2fs/ChangeLog5
-rw-r--r--lib/ext2fs/ext2fs.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog
index 93eccb39..40793f9d 100644
--- a/lib/ext2fs/ChangeLog
+++ b/lib/ext2fs/ChangeLog
@@ -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
diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h
index c573af39..d70e1b0c 100644
--- a/lib/ext2fs/ext2fs.h
+++ b/lib/ext2fs/ext2fs.h
@@ -60,6 +60,7 @@ extern "C" {
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#if EXT2_FLAT_INCLUDES
#include "e2_types.h"