olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1505492-undef-26.patch

00db10
commit 26ffd5e6c7f110cc439bb054fac9567885ffc197
00db10
Author: Roland McGrath <roland@hack.frob.com>
00db10
Date:   Fri Jun 20 20:04:47 2014 -0700
00db10
00db10
    Clean up HAVE_CONFIG_H and STDC_HEADERS.
00db10
00db10
Conflicts:
00db10
	locale/Makefile
00db10
00db10
Due to separate IS_IN backport in glibc-rh1256317-2.patch.
00db10
00db10
diff --git a/catgets/Makefile b/catgets/Makefile
00db10
index 361894a94d6cb740..a1e3e376773de28c 100644
00db10
--- a/catgets/Makefile
00db10
+++ b/catgets/Makefile
00db10
@@ -39,8 +39,7 @@ include ../Rules
00db10
 
00db10
 $(objpfx)gencat: $(gencat-modules:%=$(objpfx)%.o)
00db10
 
00db10
-catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"' \
00db10
-	    -DHAVE_CONFIG_H
00db10
+catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"'
00db10
 
00db10
 generated = de.msg test1.cat test1.h test2.cat test2.h sample.SJIS.cat \
00db10
 	    test-gencat.h
00db10
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
00db10
index 0f47900922d4099b..bf98c33cf3ba9df6 100644
00db10
--- a/include/libc-symbols.h
00db10
+++ b/include/libc-symbols.h
00db10
@@ -59,6 +59,19 @@
00db10
 
00db10
 #include <config.h>
00db10
 
00db10
+/* Define this for the benefit of portable GNU code that wants to check it.
00db10
+   Code that checks with #if will not #include <config.h> again, since we've
00db10
+   already done it (and this file is implicitly included in every compile,
00db10
+   via -include).  Code that checks with #ifdef will #include <config.h>,
00db10
+   but that file should always be idempotent (i.e., it's just #define/#undef
00db10
+   and nothing else anywhere should be changing the macro state it touches),
00db10
+   so it's harmless.  */
00db10
+#define HAVE_CONFIG_H	0
00db10
+
00db10
+/* Define this for the benefit of portable GNU code that wants to check it.
00db10
+   Of course, it's never false when building libc!  */
00db10
+#define STDC_HEADERS	1
00db10
+
00db10
 /* The symbols in all the user (non-_) macros are C symbols.  */
00db10
 
00db10
 #if !defined HAVE_ASM_WEAK_DIRECTIVE && !defined HAVE_ASM_WEAKEXT_DIRECTIVE
00db10
diff --git a/locale/Makefile b/locale/Makefile
00db10
index 2755340dd91bfad6..edd982fe87ca66cb 100644
00db10
--- a/locale/Makefile
00db10
+++ b/locale/Makefile
00db10
@@ -87,8 +87,7 @@ locale-CPPFLAGS = -DLOCALEDIR='"$(localedir)"' \
00db10
 CPPFLAGS-locale-programs = -DLOCALE_PATH='$(localepath)' \
00db10
 			   -DCHARMAP_PATH='"$(i18ndir)/charmaps"' \
00db10
 			   -DREPERTOIREMAP_PATH='"$(i18ndir)/repertoiremaps"' \
00db10
-			   -DLOCSRCDIR='"$(i18ndir)/locales"' \
00db10
-			   -DHAVE_CONFIG_H
00db10
+			   -DLOCSRCDIR='"$(i18ndir)/locales"'
00db10
 
00db10
 CFLAGS-charmap.c = -Wno-write-strings -Wno-char-subscripts
00db10
 CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts
00db10
diff --git a/stdlib/strtol_l.c b/stdlib/strtol_l.c
00db10
index 615190821e24b41a..8174d22f060c2149 100644
00db10
--- a/stdlib/strtol_l.c
00db10
+++ b/stdlib/strtol_l.c
00db10
@@ -25,7 +25,6 @@
00db10
 
00db10
 #ifdef _LIBC
00db10
 # define USE_NUMBER_GROUPING
00db10
-# define STDC_HEADERS
00db10
 # define HAVE_LIMITS_H
00db10
 #endif
00db10