From 458b2484c73b9381aa3d10b94b3e3576d4bb44d3 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Mon, 31 May 2010 23:02:16 +0200 Subject: [PATCH] s3-waf: Check for device major and minor macros --- source3/wscript | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/wscript b/source3/wscript index 8b3d85fc056..cc3f0d9617f 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') -- 2.11.4.GIT