s4-waf: fixed dirfd() detection for heimdal
authorAndrew Tridgell <tridge@samba.org>
Sun, 28 Mar 2010 08:40:05 +0000 (19:40 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:14 +0000 (20:27 +1000)
lib/replace/wscript

index 134cb76f4985583293a5d4b8e151df962600263d..e2baa02b0050159b2c9e34c4011ac8b7e9887043 100644 (file)
@@ -119,7 +119,7 @@ def configure(conf):
     conf.CHECK_FUNCS('asprintf vasprintf setenv unsetenv strnlen strtoull __strtoull')
     conf.CHECK_FUNCS('strtouq strtoll __strtoll strtoq')
     conf.CHECK_FUNCS('if_nametoindex strerror_r')
-    conf.CHECK_FUNCS('dirfd getdirentries getdents syslog')
+    conf.CHECK_FUNCS('getdirentries getdents syslog')
     conf.CHECK_FUNCS('gai_strerror get_current_dir_name')
     conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs mmap setgroups setsid')
     conf.CHECK_FUNCS('getgrent_r getgrgid_r getgrnam_r getgrouplist getpagesize')
@@ -146,6 +146,7 @@ def configure(conf):
 
     conf.CHECK_DECLS('snprintf vsnprintf asprintf vasprintf')
 
+    conf.CHECK_FUNCS('dirfd', headers='dirent.h')
     conf.CHECK_DECLS('dirfd', reverse=True, headers='dirent.h')
     conf.CHECK_DECLS('errno', headers='errno.h', reverse=True)
     conf.CHECK_DECLS('environ getgrent_r getpwent_r', reverse=True, headers='pwd.h grp.h')