From b8a91836171f5722bd5bef6dc2e9ce263c897974 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 Jul 2015 13:38:50 -0700 Subject: Install a dummy when not building sunrpc/. --- resolv/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'resolv/Makefile') 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 ', so one must exist. +# If sunrpc/ is built in this configuration, it installs a real . +# 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 -- cgit 1.4.1