waf: Fix NFS quota support with libtirpc
[metze/samba/wip.git] / source3 / lib / sysquotas_nfs.c
index fe46d3fa36a3f12fd4465fe626877aa30533ab9a..dd2b12d0ffdaa7ecb31b9c089f47e2225fb45882 100644 (file)
  * This is based on the FreeBSD / SUNOS5 section of quotas.c
  */
 
+/* <rpc/xdr.h> uses TRUE and FALSE */
+#ifdef TRUE
+#undef TRUE
+#endif
+
+#ifdef FALSE
+#undef FALSE
+#endif
+
 #include <rpc/rpc.h>
 #include <rpc/types.h>
+#include <rpc/xdr.h>
 #include <rpcsvc/rquota.h>
 #ifdef HAVE_RPC_NETTYPE_H
 #include <rpc/nettype.h>
 #endif
-#include <rpc/xdr.h>
 
 #ifndef RQ_PATHLEN
 #define RQ_PATHLEN 1024