X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Frtptools%2F0001-host2ip-no-nis-on-uClibc.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Frtptools%2F0001-host2ip-no-nis-on-uClibc.patch;h=f1a72f957098df6f3e2d9bbcfb054bff935891d0;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/rtptools/0001-host2ip-no-nis-on-uClibc.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/rtptools/0001-host2ip-no-nis-on-uClibc.patch new file mode 100644 index 0000000..f1a72f9 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/rtptools/0001-host2ip-no-nis-on-uClibc.patch @@ -0,0 +1,45 @@ +host2ip.c: disable NIS support when building with uClibc + +uClibc doesn't have NIS support, so simply disable the fallback. + +Signed-off-by: Peter Korsgaard +--- + host2ip.c | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +Index: rtptools-1.20/host2ip.c +=================================================================== +--- rtptools-1.20.orig/host2ip.c ++++ rtptools-1.20/host2ip.c +@@ -3,7 +3,16 @@ + #include /* gethostbyname() */ + #include /* sockaddr_in */ + #include /* inet_addr() */ ++ ++#include ++#ifndef __UCLIBC__ ++#define HAVE_YP ++#endif ++ ++#ifdef HAVE_YP + #include /* YP */ ++#endif ++ + #include /* strlen() added by Akira 12/27/01 */ + #include "sysdep.h" + +@@ -28,6 +37,7 @@ + else if ((hep = gethostbyname(host))) { + in = *(struct in_addr *)(hep->h_addr_list[0]); + } ++#ifdef HAVE_YP + /* As a last resort, try YP. */ + else { + static char *domain = 0; /* YP domain */ +@@ -39,5 +49,6 @@ + in.s_addr = inet_addr(value); + } + } ++#endif + return in; + } /* host2ip */