about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-08-21 14:30:56 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-11-05 16:09:40 +0530
commitfec3bb42fa49ce112da4b2445e0ccc94d7473662 (patch)
tree093da91005d41191503a50ca36b7d22512ccaedf
parentb36fa5e6c65918158aca3586dfa701644f5e2e56 (diff)
downloadglibc-fec3bb42fa49ce112da4b2445e0ccc94d7473662.tar.gz
glibc-fec3bb42fa49ce112da4b2445e0ccc94d7473662.tar.xz
glibc-fec3bb42fa49ce112da4b2445e0ccc94d7473662.zip
Remove IS_IN_nscd
Replace with IS_IN (nscd).  Generated code unchanged on x86_64.

	* include/ifaddrs.h: Use IS_IN.
	* inet/check_pf.c: Likewise.
	* sysdeps/unix/sysv/linux/check_pf.c: Likewise.
	* nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
-rw-r--r--include/ifaddrs.h2
-rw-r--r--inet/check_pf.c2
-rw-r--r--nscd/Makefile2
-rw-r--r--sysdeps/unix/sysv/linux/check_pf.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/include/ifaddrs.h b/include/ifaddrs.h
index e1c6cac114..2787f21115 100644
--- a/include/ifaddrs.h
+++ b/include/ifaddrs.h
@@ -26,7 +26,7 @@ extern void __check_native (uint32_t a1_index, int *a1_native,
 			    uint32_t a2_index, int *a2_native)
   attribute_hidden;
 
-#ifdef IS_IN_nscd
+#if IS_IN (nscd)
 extern uint32_t __bump_nl_timestamp (void) attribute_hidden;
 #endif
 
diff --git a/inet/check_pf.c b/inet/check_pf.c
index b2934f7718..c129463c48 100644
--- a/inet/check_pf.c
+++ b/inet/check_pf.c
@@ -62,7 +62,7 @@ __free_in6ai (struct in6addrinfo *in6ai)
 }
 
 
-#ifdef IS_IN_nscd
+#if IS_IN (nscd)
 uint32_t
 __bump_nl_timestamp (void)
 {
diff --git a/nscd/Makefile b/nscd/Makefile
index 7ab4e9de9d..40e99aa54c 100644
--- a/nscd/Makefile
+++ b/nscd/Makefile
@@ -79,7 +79,7 @@ CFLAGS-nscd_gethst_r.c = -fexceptions
 CFLAGS-nscd_getai.c = -fexceptions
 CFLAGS-nscd_initgroups.c = -fexceptions
 
-CPPFLAGS-nscd += -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2 -DNOT_IN_libc=1
+CPPFLAGS-nscd += -D_FORTIFY_SOURCE=2 -DNOT_IN_libc
 
 ifeq (yesyes,$(have-fpie)$(build-shared))
 CFLAGS-nscd += $(pie-ccflag)
diff --git a/sysdeps/unix/sysv/linux/check_pf.c b/sysdeps/unix/sysv/linux/check_pf.c
index 976f249e20..4ba13e2e3b 100644
--- a/sysdeps/unix/sysv/linux/check_pf.c
+++ b/sysdeps/unix/sysv/linux/check_pf.c
@@ -65,7 +65,7 @@ static struct cached_data *cache;
 __libc_lock_define_initialized (static, lock);
 
 
-#ifdef IS_IN_nscd
+#if IS_IN (nscd)
 static uint32_t nl_timestamp;
 
 uint32_t
@@ -81,7 +81,7 @@ __bump_nl_timestamp (void)
 static inline uint32_t
 get_nl_timestamp (void)
 {
-#ifdef IS_IN_nscd
+#if IS_IN (nscd)
   return nl_timestamp;
 #elif defined USE_NSCD
   return __nscd_get_nl_timestamp ();