ctdb-build: Check for ETIME in errno.h
authorAmitay Isaacs <amitay@gmail.com>
Mon, 15 Sep 2014 05:52:38 +0000 (15:52 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 17 Sep 2014 05:29:10 +0000 (07:29 +0200)
ETIME is not defined on freebsd.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/wscript

index 8951f79df8fe98df03dbddb1a554796e3c1afae5..fd7650a5cf007a7ec12153ed74c0c8b1a9da030b 100755 (executable)
@@ -90,6 +90,9 @@ def configure(conf):
         sys.exit(1)
     conf.CHECK_FUNCS('mlockall')
 
+    if not conf.CHECK_VARIABLE('ETIME', headers='errno.h'):
+        conf.DEFINE('ETIME', 'ETIMEDOUT')
+
     have_pmda = False
     if Options.options.ctdb_pmda:
         pmda_support = True