1 host2ip.c: disable NIS support when building with uClibc
3 uClibc doesn't have NIS support, so simply disable the fallback.
5 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
7 host2ip.c | 11 +++++++++++
8 1 file changed, 11 insertions(+)
10 Index: rtptools-1.20/host2ip.c
11 ===================================================================
12 --- rtptools-1.20.orig/host2ip.c
13 +++ rtptools-1.20/host2ip.c
15 #include <netdb.h> /* gethostbyname() */
16 #include <netinet/in.h> /* sockaddr_in */
17 #include <arpa/inet.h> /* inet_addr() */
19 +#include <features.h>
25 #include <rpcsvc/ypclnt.h> /* YP */
28 #include <string.h> /* strlen() added by Akira 12/27/01 */
32 else if ((hep = gethostbyname(host))) {
33 in = *(struct in_addr *)(hep->h_addr_list[0]);
36 /* As a last resort, try YP. */
38 static char *domain = 0; /* YP domain */
40 in.s_addr = inet_addr(value);