summary refs log tree commit diff
path: root/resolv/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-07-08 13:38:50 -0700
committerRoland McGrath <roland@hack.frob.com>2015-07-08 13:38:50 -0700
commitb8a91836171f5722bd5bef6dc2e9ce263c897974 (patch)
tree338b0197f39c32ee6b3afa6d922a76a7e3528191 /resolv/Makefile
parentccfa271f8be0f7c210713e043246b2ece75c2a87 (diff)
downloadglibc-b8a91836171f5722bd5bef6dc2e9ce263c897974.tar.gz
glibc-b8a91836171f5722bd5bef6dc2e9ce263c897974.tar.xz
glibc-b8a91836171f5722bd5bef6dc2e9ce263c897974.zip
Install a dummy <rpc/netdb.h> when not building sunrpc/.
Diffstat (limited to 'resolv/Makefile')
-rw-r--r--resolv/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/resolv/Makefile b/resolv/Makefile
index 3509d98e2d..1dcb75f7c7 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -72,6 +72,13 @@ xtests-special += $(objpfx)mtrace-tst-leaks2.out
 endif
 endif
 
+ifeq (,$(filter sunrpc,$(subdirs)))
+# The netdb.h we install does '#include <rpc/netdb.h>', so one must exist.
+# If sunrpc/ is built in this configuration, it installs a real <rpc/netdb.h>.
+# If that's not going to happen, install our dummy file.
+headers += rpc/netdb.h
+endif
+
 generated += mtrace-tst-leaks.out tst-leaks.mtrace \
 	     mtrace-tst-leaks2.out tst-leaks2.mtrace