diff mbox

Fix -Wundef warning for HAVE_SYS_PARAM_H

Message ID 20140709103901.GS609@spoyarek.pnq.redhat.com
State Committed
Headers show

Commit Message

Siddhesh Poyarekar July 9, 2014, 10:39 a.m. UTC
* io/ftw.c: Include sys/param.h unconditionally.

commit 3c9004534bf705fee3d57e69b5c4bb45f920ccb3
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Wed Jul 9 14:21:48 2014 +0530

    Fix -Wundef warning for HAVE_SYS_PARAM_H
    
    Include sys/param.h unconditionally

Comments

Ondrej Bilka July 9, 2014, 12:51 p.m. UTC | #1
On Wed, Jul 09, 2014 at 04:09:01PM +0530, Siddhesh Poyarekar wrote:
> 
> 	* io/ftw.c: Include sys/param.h unconditionally.
> 
looks ok.
diff mbox

Patch

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