s3-waf: add check for makedev().
authorGünther Deschner <gd@samba.org>
Tue, 22 Feb 2011 10:53:51 +0000 (11:53 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 22 Feb 2011 11:46:06 +0000 (12:46 +0100)
Guenther

source3/wscript

index 4df1680a9ac3d96e27cd8f58a65be242aa3f7881..ddfad069df8c3cb3c01cf873acf6aec43d594177 100644 (file)
@@ -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