build: Correctly detect rpc/xdr.h on FreeBSD
authorVolker Lendecke <vl@samba.org>
Wed, 31 Jul 2019 10:14:03 +0000 (12:14 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 6 Aug 2019 21:49:28 +0000 (21:49 +0000)
FreeBSD needs rpc/types.h included before rpc/xdr.h

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/wscript

index 7a4cd48097d8fc33ff6eefe1c32fd36e821762b3..6a4822dd711ec6b55e044f892e54e0b4f8d17436 100644 (file)
@@ -1433,6 +1433,7 @@ main() {
         #darwin style quota bytecount
         conf.CHECK_STRUCTURE_MEMBER('struct dqblk', 'dqb_curbytes', define='HAVE_STRUCT_DQBLK_DQB_CURBYTES',
                                 headers='sys/quota.h')
         #darwin style quota bytecount
         conf.CHECK_STRUCTURE_MEMBER('struct dqblk', 'dqb_curbytes', define='HAVE_STRUCT_DQBLK_DQB_CURBYTES',
                                 headers='sys/quota.h')
+        conf.CHECK_HEADERS('rpc/types.h rpc/xdr.h', together=True)
         if conf.CHECK_HEADERS('rpcsvc/rquota.h', lib='tirpc'):
             # Optional structure member
             conf.CHECK_STRUCTURE_MEMBER('struct getquota_rslt', 'getquota_rslt_u',
         if conf.CHECK_HEADERS('rpcsvc/rquota.h', lib='tirpc'):
             # Optional structure member
             conf.CHECK_STRUCTURE_MEMBER('struct getquota_rslt', 'getquota_rslt_u',