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