anolis-glibc/glibc-rh1505492-undef-52.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

24 lines
667 B
Diff

commit 6d6d7fde04c8ef830205a9900bf101597a2f4b18
Author: Chris Metcalf <cmetcalf@ezchip.com>
Date: Mon Dec 29 23:14:38 2014 -0500
Fix a couple of -Wundef warnings.
Conflicts:
sysdeps/unix/sysv/linux/tst-setgetname.c
File removed manually; this test does not exist in our tree.
diff --git a/stdlib/tst-limits.c b/stdlib/tst-limits.c
index 6e51dcadb5baaabb..9aabc360f6b8c3f7 100644
--- a/stdlib/tst-limits.c
+++ b/stdlib/tst-limits.c
@@ -58,7 +58,7 @@ do_test (void)
/* Values from POSIX and Unix. */
#ifdef PAGESIZE
TEST (PAGESIZE, "d", getpagesize ());
-#elif PAGE_SIZE
+#elif defined (PAGE_SIZE)
TEST (PAGE_SIZE, "d", getpagesize ());
#endif