]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Address darwin compile issue introduced in r15013, due to _IOC_NONE
authorRhys Kidd <rhyskidd@gmail.com>
Sat, 21 Mar 2015 06:35:32 +0000 (06:35 +0000)
committerRhys Kidd <rhyskidd@gmail.com>
Sat, 21 Mar 2015 06:35:32 +0000 (06:35 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15028

none/tests/ioctl_moans.c

index 65fbc02e1ea566145aac1f48be0fc6d8f193bc52..ed05e7bcc20fd3672ae6597a03099428d8b5536e 100644 (file)
@@ -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[])
 {