OSDN Git Service

test/pthread: fix build of cancellation-points test
authorAustin Foxley <austinf@cetoncorp.com>
Mon, 30 Nov 2009 01:00:38 +0000 (17:00 -0800)
committerAustin Foxley <austinf@cetoncorp.com>
Mon, 30 Nov 2009 01:15:36 +0000 (17:15 -0800)
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
test/pthread/cancellation-points.c

index af5df3a..c7e784e 100644 (file)
 
 /* take care of optional things ... */
 #define STUB(func, args) static void func args { sleep(0); }
-#if !defined(__UCLIBC__) || defined(__UCLIBC_AIO__)
+#if defined(__UCLIBC_AIO__)
 # include <aio.h>
 #else
 STUB(aio_suspend, (void *p, int n, const void *p2))
 #endif
-#if !defined(__UCLIBC__) || defined(__UCLIBC_STROPTS__)
+#if defined(__UCLIBC_STROPTS__)
 # include <stropts.h>
 #else
 STUB(getmsg, (int f, void *p, void *p2, void *p3))