summaryrefslogtreecommitdiff
path: root/fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'fcntl.h')
-rw-r--r--fcntl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/fcntl.h b/fcntl.h
index 501cd38..4a3ed54 100644
--- a/fcntl.h
+++ b/fcntl.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
@@ -158,5 +163,6 @@ int fcntl(int __fildes, int __cmd, ...);
int open(const char *__path, int __oflag, ...);
#endif
-
#endif
+
+#include <ungol/fcntl.h>