8ae002
commit 26011b5cfa6a1a8d8005d65f11d97498444a4e95
8ae002
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
8ae002
Date:   Mon Mar 24 16:46:51 2014 +0100
8ae002
8ae002
    S390: Define SIZE_MAX as unsigned long (BZ #16712).
8ae002
8ae002
--- glibc-2.17-c758a686/sysdeps/generic/stdint.h
8ae002
+++ glibc-2.17-c758a686/sysdeps/generic/stdint.h
8ae002
@@ -264,7 +264,11 @@
8ae002
 # if __WORDSIZE == 64
8ae002
 #  define SIZE_MAX		(18446744073709551615UL)
8ae002
 # else
8ae002
-#  define SIZE_MAX		(4294967295U)
8ae002
+#  ifdef __WORDSIZE32_SIZE_ULONG
8ae002
+#   define SIZE_MAX            (4294967295UL)
8ae002
+#  else
8ae002
+#   define SIZE_MAX            (4294967295U)
8ae002
+#  endif
8ae002
 # endif
8ae002
 
8ae002
 /* Limits of `wchar_t'.  */
8ae002
--- glibc-2.17-c758a686/sysdeps/s390/s390-32/bits/wordsize.h
8ae002
+++ glibc-2.17-c758a686/sysdeps/s390/s390-32/bits/wordsize.h
8ae002
@@ -4,6 +4,7 @@
8ae002
 # define __WORDSIZE	64
8ae002
 #else
8ae002
 # define __WORDSIZE	32
8ae002
+# define __WORDSIZE32_SIZE_ULONG       1
8ae002
 #endif
8ae002
 
8ae002
 #if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL
8ae002
--- glibc-2.17-c758a686/sysdeps/s390/s390-64/bits/wordsize.h
8ae002
+++ glibc-2.17-c758a686/sysdeps/s390/s390-64/bits/wordsize.h
8ae002
@@ -4,6 +4,7 @@
8ae002
 # define __WORDSIZE	64
8ae002
 #else
8ae002
 # define __WORDSIZE	32
8ae002
+# define __WORDSIZE32_SIZE_ULONG       1
8ae002
 #endif
8ae002
 
8ae002
 #if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL