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