From: Rhys Kidd Date: Sat, 21 Mar 2015 06:35:32 +0000 (+0000) Subject: Address darwin compile issue introduced in r15013, due to _IOC_NONE X-Git-Tag: svn/VALGRIND_3_11_0~564 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5681aa70c15b90ee49ca5b2a65097a87b667a66;p=thirdparty%2Fvalgrind.git Address darwin compile issue introduced in r15013, due to _IOC_NONE git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15028 --- diff --git a/none/tests/ioctl_moans.c b/none/tests/ioctl_moans.c index 65fbc02e1e..ed05e7bcc2 100644 --- a/none/tests/ioctl_moans.c +++ b/none/tests/ioctl_moans.c @@ -8,7 +8,11 @@ The choice of values here needs to match the logic in ML_(PRE_unknown_ioctl) and take into account that _IOC_NONE is not == 0 everywhere. */ +# if !defined(VGO_darwin) #define IOCTL_REQUEST_BASE (0x12345670 | _IOC(_IOC_NONE,0,0,0)) +# else +#define IOCTL_REQUEST_BASE 0x12345670 +# endif int main(int argc, const char *argv[]) {