about summary refs log tree commit diff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorArjun Shankar <arjun@redhat.com>2023-10-02 14:55:26 +0200
committerArjun Shankar <arjun@redhat.com>2023-10-24 12:31:00 +0200
commit1d74d2f042a405982661267394e16126db70dc5f (patch)
tree6d59e8ee3f31cdfb1369c5e6db67c3654f2a6587 /nss/Makefile
parent9b63a8ac404733851798680da1dc9f53ee70b64c (diff)
downloadglibc-1d74d2f042a405982661267394e16126db70dc5f.tar.gz
glibc-1d74d2f042a405982661267394e16126db70dc5f.tar.xz
glibc-1d74d2f042a405982661267394e16126db70dc5f.zip
Move 'services' routines from 'inet' into 'nss'
The getservby* and getservent* routines are entry points for nss
functionality.  This commit moves them from the 'inet' subdirectory to
'nss'.
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/nss/Makefile b/nss/Makefile
index cbfd5dc692..e88754bf51 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -229,6 +229,21 @@ CFLAGS-getrpcent_r.c += -fexceptions
 CFLAGS-getrpcent.c += -fexceptions
 endif
 
+# services routines:
+routines += \
+  getservent \
+  getservent_r \
+  getsrvbynm \
+  getsrvbynm_r \
+  getsrvbypt \
+  getsrvbypt_r \
+  # routines
+
+ifeq ($(have-thread-library),yes)
+CFLAGS-getservent_r.c += -fexceptions
+CFLAGS-getservent.c += -fexceptions
+endif
+
 # shadow routines
 routines += \
   fgetspent \