summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-05-31 23:02:16 +0200
committerKai Blin <kai@samba.org>2010-06-01 07:55:06 +0200
commit458b2484c73b9381aa3d10b94b3e3576d4bb44d3 (patch)
tree324f5b5dd03f56f13f0b39b61a2abf4268d48cb6
parentb497447e1722e6d89406f71b2371b61c616cf71b (diff)
downloadsamba-458b2484c73b9381aa3d10b94b3e3576d4bb44d3.tar.gz
samba-458b2484c73b9381aa3d10b94b3e3576d4bb44d3.tar.bz2
samba-458b2484c73b9381aa3d10b94b3e3576d4bb44d3.zip
s3-waf: Check for device major and minor macros
-rw-r--r--source3/wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 8b3d85fc05..cc3f0d9617 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -348,6 +348,14 @@ utimensat vsyslog _write __write __xstat
conf.CHECK_HEADERS('asm/types.h')
+ conf.CHECK_CODE('dev_t dev; int i = major(dev); return 0', "HAVE_DEVICE_MAJOR_FN",
+ headers='unistd.h sys/types.h',
+ msg="Checking for major macro")
+
+ conf.CHECK_CODE('dev_t dev; int i = minor(dev); return 0', "HAVE_DEVICE_MINOR_FN",
+ headers='unistd.h sys/types.h',
+ msg="Checking for minor macro")
+
#FIXME: Should just be set when krb5 and ldap requirements are fulfilled
if Options.options.with_ads:
conf.DEFINE('WITH_ADS', '1')