From 6c6e231f15c100f1f3449f2656257e120b1071af Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 1 Feb 2005 18:14:15 +0000 Subject: r5157: BUG 2266: conditionally include rpc/nettype.h to work around missing header onf FreeBSD4 (This used to be commit 314da604735696da4cf350f35d84592356e31861) --- source3/configure.in | 2 +- source3/smbd/quotas.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/configure.in b/source3/configure.in index 0dcfd9ab1e..9a54a51dc2 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -670,7 +670,7 @@ AC_HEADER_STDC AC_HEADER_DIRENT AC_HEADER_TIME AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS(arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h) +AC_CHECK_HEADERS(arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h rpc/nettype.h) AC_CHECK_HEADERS(unistd.h utime.h grp.h sys/id.h limits.h memory.h) AC_CHECK_HEADERS(rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h) AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h) diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c index a96f50ad02..1117461bc2 100644 --- a/source3/smbd/quotas.c +++ b/source3/smbd/quotas.c @@ -938,7 +938,9 @@ BOOL disk_quotas(const char *path, SMB_BIG_UINT *bsize, SMB_BIG_UINT *dfree, SMB #include #include #include +#ifdef HAVE_RPC_NETTYPE_H #include +#endif #include static int quotastat; -- cgit