ce426f
commit 85f36372aa9b7c4f8e1ebb6a3bf2c0785a019612
ce426f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
ce426f
Date:   Thu Nov 20 13:12:02 2014 +0530
ce426f
ce426f
    Remove IS_IN_nscd
ce426f
    
ce426f
    Replace with IS_IN (nscd).  Generated code unchanged on x86_64.
ce426f
    
ce426f
    	* include/ifaddrs.h: Use IS_IN.
ce426f
    	* inet/check_pf.c: Likewise.
ce426f
    	* sysdeps/unix/sysv/linux/check_pf.c: Likewise.
ce426f
    	* nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
ce426f
ce426f
Index: glibc-2.17-c758a686/include/ifaddrs.h
ce426f
===================================================================
ce426f
--- glibc-2.17-c758a686.orig/include/ifaddrs.h
ce426f
+++ glibc-2.17-c758a686/include/ifaddrs.h
ce426f
@@ -26,7 +26,7 @@ extern void __check_native (uint32_t a1_
ce426f
 			    uint32_t a2_index, int *a2_native)
ce426f
   attribute_hidden;
ce426f
 
ce426f
-#ifdef IS_IN_nscd
ce426f
+#if IS_IN (nscd)
ce426f
 extern uint32_t __bump_nl_timestamp (void) attribute_hidden;
ce426f
 #endif
ce426f
 
ce426f
Index: glibc-2.17-c758a686/inet/check_pf.c
ce426f
===================================================================
ce426f
--- glibc-2.17-c758a686.orig/inet/check_pf.c
ce426f
+++ glibc-2.17-c758a686/inet/check_pf.c
ce426f
@@ -62,7 +62,7 @@ __free_in6ai (struct in6addrinfo *in6ai)
ce426f
 }
ce426f
 
ce426f
 
ce426f
-#ifdef IS_IN_nscd
ce426f
+#if IS_IN (nscd)
ce426f
 uint32_t
ce426f
 __bump_nl_timestamp (void)
ce426f
 {
ce426f
Index: glibc-2.17-c758a686/nscd/Makefile
ce426f
===================================================================
ce426f
--- glibc-2.17-c758a686.orig/nscd/Makefile
ce426f
+++ glibc-2.17-c758a686/nscd/Makefile
ce426f
@@ -79,7 +79,7 @@ CFLAGS-nscd_gethst_r.c = -fexceptions
ce426f
 CFLAGS-nscd_getai.c = -fexceptions
ce426f
 CFLAGS-nscd_initgroups.c = -fexceptions
ce426f
 
ce426f
-CPPFLAGS-nscd += -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2 -DNOT_IN_libc=1
ce426f
+CPPFLAGS-nscd += -D_FORTIFY_SOURCE=2 -DNOT_IN_libc
ce426f
 
ce426f
 ifeq (yesyes,$(have-fpie)$(build-shared))
ce426f
 CFLAGS-nscd += $(pie-ccflag)
ce426f
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/check_pf.c
ce426f
===================================================================
ce426f
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/check_pf.c
ce426f
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/check_pf.c
ce426f
@@ -65,7 +65,7 @@ libc_freeres_ptr (static struct cached_d
ce426f
 __libc_lock_define_initialized (static, lock);
ce426f
 
ce426f
 
ce426f
-#ifdef IS_IN_nscd
ce426f
+#if IS_IN (nscd)
ce426f
 static uint32_t nl_timestamp;
ce426f
 
ce426f
 uint32_t
ce426f
@@ -81,7 +81,7 @@ __bump_nl_timestamp (void)
ce426f
 static inline uint32_t
ce426f
 get_nl_timestamp (void)
ce426f
 {
ce426f
-#ifdef IS_IN_nscd
ce426f
+#if IS_IN (nscd)
ce426f
   return nl_timestamp;
ce426f
 #elif defined USE_NSCD
ce426f
   return __nscd_get_nl_timestamp ();