summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-08-15 00:21:01 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-08-15 00:21:01 +0200
commit3b8cc67f2af9aaa3c46b8dd19cc09f8f65db0ce7 (patch)
tree8a997898519b03c7ee61936668a878248d52a55b
parent4c6ee497aaf5efc9133e1433585e1bb579cc8fc3 (diff)
downloadweechat-3b8cc67f2af9aaa3c46b8dd19cc09f8f65db0ce7.zip
script: fix compilation with -O2 (replace define of _GNU_SOURCE by _XOPEN_SOURCE)
-rw-r--r--src/plugins/script/script-repo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c
index 12a326c6e..82f1c5271 100644
--- a/src/plugins/script/script-repo.c
+++ b/src/plugins/script/script-repo.c
@@ -21,9 +21,7 @@
* script-repo.c: download and read repository file (plugins.xml.gz)
*/
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
+#define _XOPEN_SOURCE 700
#include <stdlib.h>
#include <unistd.h>