diff options
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r-- | source3/include/includes.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 6c7a67afef..274d3ccf24 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -586,9 +586,17 @@ union semun { #define HAVE_NETGROUP 1 #endif -#if defined (HAVE_NETGROUP) && defined(HAVE_RPCSVC_YPCLNT_H) -#include "rpcsvc/ypclnt.h" +#if defined (HAVE_NETGROUP) +#if defined(HAVE_RPC_RPC_H) +#include <rpc/rpc.h> #endif +#if defined(HAVE_RPCSVC_YP_PROT_H) +#include <rpcsvc/yp_prot.h> +#endif +#if defined(HAVE_RPCSVC_YPCLNT_H) +#include <rpcsvc/ypclnt.h> +#endif +#endif /* HAVE_NETGROUP */ #ifndef ALLOW_CHANGE_PASSWORD #if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID)) |