summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-22 14:48:03 -0400
committerSteve Dickson <steved@redhat.com>2015-04-23 08:29:45 -0400
commit6d8d4b5a7bf63812b95d152762c604cdc1ee3911 (patch)
treefe8850010f415b0d5887c7c7a492aab894c9bdfd
parent7228a9482b92ff0305f7e7ccd0276c638bee1884 (diff)
downloadti-rpc-6d8d4b5a7bf63812b95d152762c604cdc1ee3911.tar.gz
Include string.h for memset
This fixes warning: implicit declaration of function 'memset' Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--src/authgss_prot.c1
-rw-r--r--tirpc/rpc/rpcent.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/authgss_prot.c b/src/authgss_prot.c
index 669eab7..d80ba17 100644
--- a/src/authgss_prot.c
+++ b/src/authgss_prot.c
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <string.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h
index 6619cd3..147f909 100644
--- a/tirpc/rpc/rpcent.h
+++ b/tirpc/rpc/rpcent.h
@@ -49,7 +49,7 @@ extern "C" {
#endif
/* These are defined in /usr/include/rpc/netdb.h */
-#if 0
+#if !defined(__GLIBC__)
struct rpcent {
char *r_name; /* name of server for this rpc program */
char **r_aliases; /* alias list */