[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r7924 - in /trunk/libc/posix: Makefile cross-getconf.c



Author: joseph
Date: Fri Feb 13 11:01:14 2009
New Revision: 7924

Log:
Add missing definitions and correct typos in last merge.

Modified:
    trunk/libc/posix/Makefile
    trunk/libc/posix/cross-getconf.c

Modified: trunk/libc/posix/Makefile
==============================================================================
--- trunk/libc/posix/Makefile (original)
+++ trunk/libc/posix/Makefile Fri Feb 13 11:01:14 2009
@@ -357,7 +357,7 @@
 
 # Get configuration defines for cross-getconf by preprocessing confstr.c.
 $(objpfx)cross-getconf.h: confstr.c
-	$(compile.c) -E -dM -o - | grep "define _POSIX_V7_ILP32_OFF32\|define _POSIX_V7_ILP32_OFFBIG\|define _POSIX_V7_LP64_OFF64\|define _POSIX_V7_LPBIG_OFFBIG|_POSIX_V6_ILP32_OFF32\|define _POSIX_V6_ILP32_OFFBIG\|define _POSIX_V6_LP64_OFF64\|define _POSIX_V6_LPBIG_OFFBIG|_XBS5_ILP32_OFF32\|define _XBS5_ILP32_OFFBIG\|define _XBS5_LP64_OFF64\|define _XBS5_LPBIG_OFFBIG" > $(objpfx)cross-getconf.h
+	$(compile.c) -E -dM -o - | grep "define _POSIX_V7_ILP32_OFF32\|define _POSIX_V7_ILP32_OFFBIG\|define _POSIX_V7_LP64_OFF64\|define _POSIX_V7_LPBIG_OFFBIG\|_POSIX_V6_ILP32_OFF32\|define _POSIX_V6_ILP32_OFFBIG\|define _POSIX_V6_LP64_OFF64\|define _POSIX_V6_LPBIG_OFFBIG\|_XBS5_ILP32_OFF32\|define _XBS5_ILP32_OFFBIG\|define _XBS5_LP64_OFF64\|define _XBS5_LPBIG_OFFBIG" > $(objpfx)cross-getconf.h
 
 cross-getconf-CFLAGS = -O -I$(objpfx)
 

Modified: trunk/libc/posix/cross-getconf.c
==============================================================================
--- trunk/libc/posix/cross-getconf.c (original)
+++ trunk/libc/posix/cross-getconf.c Fri Feb 13 11:01:14 2009
@@ -74,6 +74,15 @@
 # define _XBS5_LPBIG_OFFBIG (-1)
 #endif
 
+#undef _CS_V5_WIDTH_RESTRICTED_ENVS
+#define _CS_V5_WIDTH_RESTRICTED_ENVS 5
+
+#undef _CS_V6_WIDTH_RESTRICTED_ENVS
+#define _CS_V6_WIDTH_RESTRICTED_ENVS 6
+
+#undef _CS_V7_WIDTH_RESTRICTED_ENVS
+#define _CS_V7_WIDTH_RESTRICTED_ENVS 7
+
 /* Cross-getconf is a very simple program that assumes fixed
    input and produces fixed output.  It handles only cases
    that are necessary to cross-compile EGLIBC.  */