anolis-glibc/glibc-rh1505492-undef-40.patch
zhangbinchen ff0128648f import glibc-2.17-292.el7.src.rpm
Signed-off-by: zhangbinchen <zhangbinchen@openanolis.org>
2021-08-21 12:40:25 +08:00

23 lines
590 B
Diff

commit 12f2254b815056bb897a25a0c6dee0122aef52ac
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Thu Jul 10 14:19:21 2014 +0530
Fix -Wundef warning for HAVE_SYS_PARAM_H
Include sys/param.h unconditionally
diff --git a/io/ftw.c b/io/ftw.c
index 7aff7d04c9ed1e95..ffdb4b02dc7ca4d5 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