Revision
95
Author
robert@fledge.watson.org
Date
2009-11-03 06:21:13 -0800 (Tue, 03 Nov 2009)

Log Message

Minor tweaks to easily ported tests: fix header inclusion.

Modified Paths

Diff

Modified: trunk/testing/dispatch_after.c (94 => 95)


--- trunk/testing/dispatch_after.c	2009-11-03 14:19:53 UTC (rev 94)
+++ trunk/testing/dispatch_after.c	2009-11-03 14:21:13 UTC (rev 95)
@@ -23,7 +23,9 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <assert.h>
+#if HAVE_LIBKERN_OSATOMIC_H
 #include <libkern/OSAtomic.h>
+#endif
 
 #include "dispatch_test.h"
 #include <Block.h>

Modified: trunk/testing/dispatch_group.c (94 => 95)


--- trunk/testing/dispatch_group.c	2009-11-03 14:19:53 UTC (rev 94)
+++ trunk/testing/dispatch_group.c	2009-11-03 14:21:13 UTC (rev 95)
@@ -24,7 +24,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
+#if HAVE_LIBKERN_OSATOMIC_H
 #include <libkern/OSAtomic.h>
+#endif
 
 #include "dispatch_test.h"
 

Modified: trunk/testing/dispatch_priority.c (94 => 95)


--- trunk/testing/dispatch_priority.c	2009-11-03 14:19:53 UTC (rev 94)
+++ trunk/testing/dispatch_priority.c	2009-11-03 14:21:13 UTC (rev 95)
@@ -20,11 +20,14 @@
 
 #include <stdio.h>
 #include <dispatch/dispatch.h>
-#include <dispatch/queue_private.h>
+#define	__DISPATCH_INDIRECT__
+#include <src/queue_private.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <assert.h>
+#if HAVE_TARGETCONDITIONALS_H
 #include <TargetConditionals.h>
+#endif
 
 #include "dispatch_test.h"