diff options
Diffstat (limited to 'package/libtirpc/patches/patch-src_getrpcent_c')
-rw-r--r-- | package/libtirpc/patches/patch-src_getrpcent_c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/package/libtirpc/patches/patch-src_getrpcent_c b/package/libtirpc/patches/patch-src_getrpcent_c new file mode 100644 index 000000000..8e213ae54 --- /dev/null +++ b/package/libtirpc/patches/patch-src_getrpcent_c @@ -0,0 +1,41 @@ +--- libtirpc-0.2.4.orig/src/getrpcent.c 2013-12-09 21:59:51.000000000 +0100 ++++ libtirpc-0.2.4/src/getrpcent.c 2014-05-18 08:04:03.462885748 +0200 +@@ -50,6 +50,10 @@ + #include <libc_private.h> + #endif + ++#if HAVE_CONFIG_H ++#include "config.h" ++#endif ++ + /* + * Internet version. + */ +@@ -89,7 +93,7 @@ _rpcdata() + return (d); + } + +-#ifdef GQ ++#if !HAVE_GETRPCBYNYMBER + struct rpcent * + getrpcbynumber(number) + int number; +@@ -135,7 +139,9 @@ no_yp: + endrpcent(); + return (p); + } ++#endif /* !HAVE_GETRPCBYNUMBER */ + ++#if !HAVE_GETRPCBYNAME + struct rpcent * + getrpcbyname(name) + const char *name; +@@ -158,7 +164,7 @@ done: + endrpcent(); + return (rpc); + } +-#endif /* GQ */ ++#endif /* !HAVE_GETRPCBYNAME */ + + void + setrpcent(f) |