From 33d676cd7e34ca5b9ed5ea0c99bcbda441b3b95f Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 22 Feb 2011 11:53:51 +0100 Subject: s3-waf: add check for makedev(). Guenther --- source3/wscript | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 +#endif +#include +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 -- cgit