summaryrefslogtreecommitdiff
path: root/aio.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-12 19:13:56 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-12 19:13:56 -0400
commitc486885ecda309759144ebad16ec4afd566e0bee (patch)
tree505e86e0afc8341ccbceff8713e2a00fd56c6311 /aio.h
parent5638ea3056acb6c3c3eb10f0525f7a4b15dbcb2b (diff)
prevent prepocessor comparisons against empty tokens
Diffstat (limited to 'aio.h')
-rw-r--r--aio.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/aio.h b/aio.h
index 9da120f..8a080dd 100644
--- a/aio.h
+++ b/aio.h
@@ -27,6 +27,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
+#if defined _XOPEN_SOURCE && _XOPEN_SOURCE - 1 < 0
+#undef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 400
+#endif
+
#if defined _XOPEN_SOURCE && !defined _POSIX_C_SOURCE
# if (_XOPEN_SOURCE >= 700)
# define _POSIX_C_SOURCE 200809L