From 3e35738130ab4942bd9e807d51b20b7cd6e61943 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 9 Mar 2015 17:43:03 +0000 Subject: Jesus, that OpenBSD bug is FUCKING ANNOYING. --- src/libstddjb/iopause_ppoll.c | 9 +++++++++ src/libstddjb/iopause_select.c | 5 +++++ 2 files changed, 14 insertions(+) (limited to 'src/libstddjb') 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 #include #include 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 #include /* Solaris... */ #include -- cgit v1.2.3