summaryrefslogtreecommitdiff
path: root/_obnammodule.c
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-24 11:55:03 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-24 11:55:03 +0100
commitb8557005171b4031363bb74e710eb05cf68c67b6 (patch)
tree56167fe13af9732c09b463ddf9d705a53368778a /_obnammodule.c
parentc24aa1a5308bc6e3c2676b58f5c47ce176b79f80 (diff)
downloadobnam-b8557005171b4031363bb74e710eb05cf68c67b6.tar.gz
Fix #define for _XOPEN_SOURCE to be conditional.
Diffstat (limited to '_obnammodule.c')
-rw-r--r--_obnammodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/_obnammodule.c b/_obnammodule.c
index e32689b9..edd61fcc 100644
--- a/_obnammodule.c
+++ b/_obnammodule.c
@@ -34,7 +34,9 @@
#include <Python.h>
+#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
+#endif
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>