]> granicus.if.org Git - libtirpc/commitdiff
Include string.h for memset
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 22 Apr 2015 18:48:03 +0000 (14:48 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 23 Apr 2015 12:29:45 +0000 (08:29 -0400)
This fixes warning: implicit declaration of function 'memset'

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
src/authgss_prot.c
tirpc/rpc/rpcent.h

index 669eab7c9f4967127cd89818deca6d24888b8735..d80ba177b55955506ce098ec8a8a2e83deaa6aad 100644 (file)
@@ -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>
index 6619cd39fa28a501212f63159ab0aa86fa40e40a..147f909ec20f6e4aba85840a947ee462580b677e 100644 (file)
@@ -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 */