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:23 +0200
committerArjun Shankar <arjun@redhat.com>2023-10-24 12:30:59 +0200
commit5a6e784e64c9e3d9b16b257f73cc6332771d9e18 (patch)
treeab84ac5d7456fbad3760c1e00723ba181dca021f /nss/Makefile
parent3f7c7ac887f9d0f5d41b3c7d698fe8df939c0a87 (diff)
downloadglibc-5a6e784e64c9e3d9b16b257f73cc6332771d9e18.tar.gz
glibc-5a6e784e64c9e3d9b16b257f73cc6332771d9e18.tar.xz
glibc-5a6e784e64c9e3d9b16b257f73cc6332771d9e18.zip
Move 'networks' routines from 'inet' into 'nss'
The getnetby* and getnetent* 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/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/nss/Makefile b/nss/Makefile
index 2a451f68d9..023a11fa4b 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -159,6 +159,25 @@ CFLAGS-getnetgrent.c += -fexceptions
 CFLAGS-getnetgrent_r.c += -fexceptions
 endif
 
+# networks routines:
+routines += \
+  getnetbyad \
+  getnetbyad_r \
+  getnetbynm \
+  getnetbynm_r \
+  getnetent \
+  getnetent_r \
+  # routines
+
+ifeq ($(have-thread-library),yes)
+CFLAGS-getnetbyad.c += -fexceptions
+CFLAGS-getnetbyad_r.c += -fexceptions
+CFLAGS-getnetbynm.c += -fexceptions
+CFLAGS-getnetbynm_r.c += -fexceptions
+CFLAGS-getnetent.c += -fexceptions
+CFLAGS-getnetent_r.c += -fexceptions
+endif
+
 # pwd routines:
 routines += \
   fgetpwent \