From: Günther Deschner Date: Tue, 22 Feb 2011 10:53:51 +0000 (+0100) Subject: s3-waf: add check for makedev(). X-Git-Tag: tevent-0.9.11~372 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33d676cd7e34ca5b9ed5ea0c99bcbda441b3b95f;p=thirdparty%2Fsamba.git s3-waf: add check for makedev(). Guenther --- diff --git a/source3/wscript b/source3/wscript index 4df1680a9ac..ddfad069df8 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