build: Check for IRIX kernel oplock types
authorKai Blin <kai@samba.org>
Sun, 21 Mar 2010 12:01:00 +0000 (13:01 +0100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:03 +0000 (20:27 +1000)
source3/wscript

index 589f1b4da240b97de22056d6b3785bc3e5ce18fb..115adc408d90b65960c6b62f878db085ebfc4cf7 100644 (file)
@@ -71,6 +71,11 @@ main() {
 }''', 'HAVE_KERNEL_OPLOCKS_LINUX', addmain=False, execute=True,
         msg="Checking for Linux kernel oplocks")
 
+    # Check for IRIX kernel oplock types
+    conf.CHECK_CODE('oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;',
+                    'HAVE_KERNEL_OPLOCKS_IRIX', headers='sys/types.h fcntl.h',
+                    msg="Checking for IRIX kernel oplock types")
+
     # Look for CUPS
     conf.find_program('cups-config', var='CUPS_CONFIG')
     if conf.env.CUPS_CONFIG: