Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Install a dummy <rpc/netdb.h> when not building sunrpc/.
  • Loading branch information
Roland McGrath committed Jul 8, 2015
1 parent ccfa271 commit b8a9183
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2015-07-08 Roland McGrath <roland@hack.frob.com>

* resolv/rpc/netdb.h: New file.
* resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.

2015-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>

* stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
Expand Down
7 changes: 7 additions & 0 deletions resolv/Makefile
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions resolv/rpc/netdb.h
@@ -0,0 +1,3 @@
/* This is a dummy file for <rpc/netdb.h>, which is included by <netdb.h>.
This file is installed when the C library does not support the SunRPC
interfaces (including 'struct rpcent' et al) at all. */

0 comments on commit b8a9183

Please sign in to comment.