summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-22 11:53:51 +0100
committerGünther Deschner <gd@samba.org>2011-02-22 12:46:06 +0100
commit33d676cd7e34ca5b9ed5ea0c99bcbda441b3b95f (patch)
tree6afc909ff8f05a4fb706065fa659a53d7ce6e126 /source3
parentbd333551bd5a2436773a1541a28e3e47c0e08533 (diff)
downloadsamba-33d676cd7e34ca5b9ed5ea0c99bcbda441b3b95f.tar.gz
samba-33d676cd7e34ca5b9ed5ea0c99bcbda441b3b95f.tar.bz2
samba-33d676cd7e34ca5b9ed5ea0c99bcbda441b3b95f.zip
s3-waf: add check for makedev().
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 4df1680a9a..ddfad069df 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1257,6 +1257,17 @@ main() {
msg="Checking for the maximum value of the 'time_t' type"):
conf.DEFINE('TIME_T_MAX', '67768036191676799ll')
+ conf.CHECK_CODE('''
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
+#include <sys/types.h>
+main() { dev_t dev = makedev(1,2); return 0; }
+''',
+ 'HAVE_MAKEDEV',
+ addmain=False,
+ msg='Checking whether the macro for makedev is available')
+
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