s3-waf: add check for "struct dirent64".
authorGünther Deschner <gd@samba.org>
Wed, 16 Feb 2011 15:42:33 +0000 (16:42 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 16 Feb 2011 17:01:23 +0000 (18:01 +0100)
Guenther

source3/wscript

index 78aad616572a7565792602fe2edc63c5888a122e..bbb25eeedca59967da475c45ccab8af40e4caa29 100644 (file)
@@ -1001,6 +1001,10 @@ int i; i = PAM_RADIO_TYPE;
 ''',
                'HAVE_LINUX_RTNETLINK_H',
                msg='Checking whether Linux rtnetlink is available')
+    if conf.CHECK_TYPE('struct dirent64', headers='sys/types.h dirent.h') and conf.CONFIG_SET('HAVE_READDIR64'):
+        conf.DEFINE('HAVE_STRUCT_DIRENT64', '1')
+    else:
+        conf.undefine('HAVE_STRUCT_DIRENT64')
 
     default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam
                                       auth_sam auth_unix auth_winbind auth_wbc auth_server