s3-waf: add check for ftruncate extend.
authorGünther Deschner <gd@samba.org>
Tue, 22 Feb 2011 11:43:12 +0000 (12:43 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 22 Feb 2011 12:35:48 +0000 (13:35 +0100)
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb 22 13:35:48 CET 2011 on sn-devel-104

source3/wscript

index de626406c97985ebe57679bb1c28ddf2949a7c11..ea68959c1ceaf026458fa2dccd1392c2d742c50b 100644 (file)
@@ -1289,6 +1289,12 @@ main() {
        execute=True,
        msg='Checking whether the realpath function allows a NULL argument')
 
+    conf.CHECK_CODE('''#include "../tests/ftruncate.c"''',
+                   'HAVE_FTRUNCATE_EXTEND',
+                   msg='Checking for ftruncate extend',
+                   addmain=False,
+                   execute=True)
+
     default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam
                                       auth_sam auth_unix auth_winbind auth_wbc auth_server
                                       auth_domain auth_builtin vfs_default