summaryrefslogtreecommitdiff
path: root/src/libstddjb/iopause_ppoll.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-07-22 13:58:11 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-07-22 13:58:11 +0000
commitd44819ae9c55f4d3c0f347b2640f58a2deddebb4 (patch)
tree040c9d2c5ce734047af365df4b86edc33379dd70 /src/libstddjb/iopause_ppoll.c
parent8923a6ffa3da869b5fc56b9b1f698f483e3180a4 (diff)
downloadskalibs-d44819ae9c55f4d3c0f347b2640f58a2deddebb4.tar.xz
Factor all the BSD complaints into one new header
Diffstat (limited to 'src/libstddjb/iopause_ppoll.c')
-rw-r--r--src/libstddjb/iopause_ppoll.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libstddjb/iopause_ppoll.c b/src/libstddjb/iopause_ppoll.c
index 960a464..0c571e1 100644
--- a/src/libstddjb/iopause_ppoll.c
+++ b/src/libstddjb/iopause_ppoll.c
@@ -4,16 +4,7 @@
#ifdef SKALIBS_HASPPOLL
-/* Just in case OpenBSD implements ppoll before fixing EOVERFLOW.
- Stranger things have happened in the wonderful world of OpenBSD. */
-#ifndef _BSD_SOURCE
-#define _BSD_SOURCE
-#endif
-
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
+#include <skalibs/nonposix.h>
#include <errno.h>
#include <time.h>
#include <poll.h>