diff --git a/source3/configure.in b/source3/configure.in index a054590b96d..4bfb1db02e8 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -965,6 +965,7 @@ AC_CHECK_HEADERS(sys/sysmacros.h) AC_CHECK_HEADERS(sys/syslog.h syslog.h) AC_CHECK_HEADERS(langinfo.h locale.h) AC_CHECK_HEADERS(xfs/libxfs.h) +AC_CHECK_HEADERS(netgroup.h) AC_CHECK_HEADERS(rpcsvc/yp_prot.h,,,[[ #if HAVE_RPC_RPC_H diff --git a/source3/include/includes.h b/source3/include/includes.h index b7fcc10ab15..041c431a58c 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -250,6 +250,10 @@ typedef int ber_int_t; #include #endif +#if HAVE_NETGROUP_H +#include +#endif + #if defined(HAVE_AIO_H) && defined(WITH_AIO) #include #endif