aboutsummaryrefslogtreecommitdiff
path: root/jim-aio.c
diff options
context:
space:
mode:
authorEvan Hunter <evan@ozhiker.com>2016-10-08 11:27:03 +0100
committerSteve Bennett <steveb@workware.net.au>2016-10-09 08:19:18 +1000
commit1b0cdc3e669b69281371ab77893792d2d8621af9 (patch)
tree62e302af329cc6ea7cfd858652c7298c0280a44d /jim-aio.c
parent9b5c92b150d319f35cdc93cd556101f1de6b2b32 (diff)
downloadjimtcl-1b0cdc3e669b69281371ab77893792d2d8621af9.zip
jimtcl-1b0cdc3e669b69281371ab77893792d2d8621af9.tar.gz
jimtcl-1b0cdc3e669b69281371ab77893792d2d8621af9.tar.bz2
Avoid re-defining _GNU_SOURCE
pkgconfig for SDL causes _GNU_SOURCE to be defined on the commandline, hence causing an error when these source files re-define it.
Diffstat (limited to 'jim-aio.c')
-rw-r--r--jim-aio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jim-aio.c b/jim-aio.c
index 93e0b41..0631e40 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -39,7 +39,9 @@
#include "jimautoconf.h"
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>