build: Check correctly for sendfile (missing .h in header)
authorAndrew Bartlett <abartlet@samba.org>
Sat, 2 Jun 2012 03:02:21 +0000 (13:02 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 2 Jun 2012 03:34:08 +0000 (05:34 +0200)
This will hopefully fix the build on SLES8, which does not support 64-bit sendfile.

Andrew Bartlett

source3/wscript

index e9d971a3be03bd8cc6cc52b898f8d35306e3b276..b08fc77d17afb5470637899a000a6d74209dadcf 100755 (executable)
@@ -941,7 +941,7 @@ main() {
                             ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
                             ''',
                             '_HAVE_SENDFILE',
-                            headers='sys/sendfile',
+                            headers='sys/sendfile.h',
                             msg='Checking for linux sendfile support')
 
             # Try and cope with broken Linux sendfile....