s3:configure: check for SPLICE_F_MOVE at configure stage
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2012 06:49:18 +0000 (08:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Jun 2012 09:43:00 +0000 (11:43 +0200)
This should fix the waf build on AIX, which has a splice symbol.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun 18 11:43:01 CEST 2012 on sn-devel-104

source3/configure.in
source3/wscript

index b6143f4041d3156c9e4e697c4885bb8270d3a75a..e4ce944b0e39774e0d58eebe151fdda909327088 100644 (file)
@@ -5676,7 +5676,7 @@ AC_CACHE_CHECK([for Linux splice],
 #include <unistd.h>
 #endif
 #include <fcntl.h>],
-    [long ret = splice(0,0,1,0,400,0);],
+    [long ret = splice(0,0,1,0,400,SPLICE_F_MOVE);],
     samba_cv_HAVE_LINUX_SPLICE=yes,
     samba_cv_HAVE_LINUX_SPLICE=no)])
 ;;
index 5a8a6f0baa6c38a31dc118db235eb6c3dbed62c9..55b859c2de8fcdeee8a5cc8c85bc0c4c9371000c 100755 (executable)
@@ -107,7 +107,7 @@ def configure(conf):
 #if defined(HAVE_UNISTD_H)
 #include <unistd.h>
 #endif
-long ret = splice(0,0,1,0,400,0);
+long ret = splice(0,0,1,0,400,SPLICE_F_MOVE);
 ''',
         'HAVE_LINUX_SPLICE',
         headers='fcntl.h'):