diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-03-09 17:43:03 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-03-09 17:43:03 +0000 |
commit | 3e35738130ab4942bd9e807d51b20b7cd6e61943 (patch) | |
tree | e67e3ef14aa027d0c6e772efb7d24e433141b3ca /src/libstddjb | |
parent | 34673241173ebcb143df9652e67ac077ba7176c0 (diff) | |
download | skalibs-3e35738130ab4942bd9e807d51b20b7cd6e61943.tar.xz |
Jesus, that OpenBSD bug is FUCKING ANNOYING.
Diffstat (limited to 'src/libstddjb')
-rw-r--r-- | src/libstddjb/iopause_ppoll.c | 9 | ||||
-rw-r--r-- | src/libstddjb/iopause_select.c | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/libstddjb/iopause_ppoll.c b/src/libstddjb/iopause_ppoll.c index 78d157a..960a464 100644 --- a/src/libstddjb/iopause_ppoll.c +++ b/src/libstddjb/iopause_ppoll.c @@ -4,7 +4,16 @@ #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 <errno.h> #include <time.h> #include <poll.h> diff --git a/src/libstddjb/iopause_select.c b/src/libstddjb/iopause_select.c index 3f11b22..dd433b7 100644 --- a/src/libstddjb/iopause_select.c +++ b/src/libstddjb/iopause_select.c @@ -1,5 +1,10 @@ /* ISC license. */ +/* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif + #include <sys/types.h> #include <string.h> /* Solaris... */ #include <errno.h> |