svn commit: samba r5157 - in branches/SAMBA_3_0/source: . smbd

jerry at samba.org jerry at samba.org
Tue Feb 1 18:14:16 GMT 2005


Author: jerry
Date: 2005-02-01 18:14:15 +0000 (Tue, 01 Feb 2005)
New Revision: 5157

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5157

Log:
BUG 2266: conditionally include rpc/nettype.h to work around missing header onf FreeBSD4
Modified:
   branches/SAMBA_3_0/source/configure.in
   branches/SAMBA_3_0/source/smbd/quotas.c


Changeset:
Modified: branches/SAMBA_3_0/source/configure.in
===================================================================
--- branches/SAMBA_3_0/source/configure.in	2005-02-01 06:16:12 UTC (rev 5156)
+++ branches/SAMBA_3_0/source/configure.in	2005-02-01 18:14:15 UTC (rev 5157)
@@ -670,7 +670,7 @@
 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)

Modified: branches/SAMBA_3_0/source/smbd/quotas.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/quotas.c	2005-02-01 06:16:12 UTC (rev 5156)
+++ branches/SAMBA_3_0/source/smbd/quotas.c	2005-02-01 18:14:15 UTC (rev 5157)
@@ -938,7 +938,9 @@
 #include <rpc/rpc.h>
 #include <rpc/types.h>
 #include <rpcsvc/rquota.h>
+#ifdef HAVE_RPC_NETTYPE_H
 #include <rpc/nettype.h>
+#endif
 #include <rpc/xdr.h>
 
 static int quotastat;



More information about the samba-cvs mailing list