aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-07-10 14:19:21 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-07-10 14:19:21 +0530
commit12f2254b815056bb897a25a0c6dee0122aef52ac (patch)
tree8a5b61b17942a6e5d39d09ec31f9fee4e062081d
parentc3c7c3604fdf934d7a8ec70d79915cd8c8984ad1 (diff)
downloadglibc-12f2254b815056bb897a25a0c6dee0122aef52ac.zip
glibc-12f2254b815056bb897a25a0c6dee0122aef52ac.tar.gz
glibc-12f2254b815056bb897a25a0c6dee0122aef52ac.tar.bz2
Fix -Wundef warning for HAVE_SYS_PARAM_H
Include sys/param.h unconditionally
-rw-r--r--ChangeLog2
-rw-r--r--io/ftw.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index dc0b76c..673f0af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2014-07-10 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * io/ftw.c: Include sys/param.h unconditionally.
+
* locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
[BZ #17125]
diff --git a/io/ftw.c b/io/ftw.c
index b058b74..bf749b1 100644
--- a/io/ftw.c
+++ b/io/ftw.c
@@ -66,9 +66,7 @@ char *alloca ();
#include <string.h>
#include <unistd.h>
#include <not-cancel.h>
-#if HAVE_SYS_PARAM_H || defined _LIBC
-# include <sys/param.h>
-#endif
+#include <sys/param.h>
#ifdef _LIBC
# include <include/sys/stat.h>
#else