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