diff options
| author | Peter Korsgaard <peter@korsgaard.com> | 2015-02-03 14:52:07 +0100 |
|---|---|---|
| committer | Peter Korsgaard <peter@korsgaard.com> | 2015-02-03 14:52:56 +0100 |
| commit | 298cd8eaa21a21eee85f9551a26ad294347b1d5a (patch) | |
| tree | 249fa33b66f65e6daffdbfc8ca2e5399e8d89e61 /package/rtptools/0001-host2ip-no-nis-on-uClibc.patch | |
| parent | dd798a45c571063595c45278e28ed4f614f2cf32 (diff) | |
package/*: rename patches according to the new policy
Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345)
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/rtptools/0001-host2ip-no-nis-on-uClibc.patch')
| -rw-r--r-- | package/rtptools/0001-host2ip-no-nis-on-uClibc.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/package/rtptools/0001-host2ip-no-nis-on-uClibc.patch b/package/rtptools/0001-host2ip-no-nis-on-uClibc.patch new file mode 100644 index 000000000..f1a72f957 --- /dev/null +++ b/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 <peter@korsgaard.com> +--- + 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 <netdb.h> /* gethostbyname() */ + #include <netinet/in.h> /* sockaddr_in */ + #include <arpa/inet.h> /* inet_addr() */ ++ ++#include <features.h> ++#ifndef __UCLIBC__ ++#define HAVE_YP ++#endif ++ ++#ifdef HAVE_YP + #include <rpcsvc/ypclnt.h> /* YP */ ++#endif ++ + #include <string.h> /* 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 */ |
