Skip to content

Commit 0b44b94

Browse files
committed
[Tests] Use <poll.h> in preference to <sys/poll.h>.
We probably shouldn't be using `<sys/poll.h>` at all, but keep it in just in case something doesn't also have `<poll.h>`. rdar://123380262
1 parent ee39300 commit 0b44b94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/dispatch_test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#if __has_include(<sys/event.h>)
3434
#define HAS_SYS_EVENT_H 1
3535
#include <sys/event.h>
36+
#elif __has_include(<poll.h>)
37+
#include <poll.h>
3638
#else
3739
#include <sys/poll.h>
3840
#endif

0 commit comments

Comments
 (0)