diff --git a/ChangeLog b/ChangeLog index 66892209f2..c841dafd56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-07-08 Roland McGrath + + * resolv/rpc/netdb.h: New file. + * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it. + 2015-07-08 Adhemerval Zanella * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero 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 diff --git a/resolv/rpc/netdb.h b/resolv/rpc/netdb.h new file mode 100644 index 0000000000..eecea3cb06 --- /dev/null +++ b/resolv/rpc/netdb.h @@ -0,0 +1,3 @@ +/* This is a dummy file for , which is included by . + This file is installed when the C library does not support the SunRPC + interfaces (including 'struct rpcent' et al) at all. */