diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-15 00:21:01 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-15 00:21:01 +0200 |
commit | 3b8cc67f2af9aaa3c46b8dd19cc09f8f65db0ce7 (patch) | |
tree | 8a997898519b03c7ee61936668a878248d52a55b /src/plugins | |
parent | 4c6ee497aaf5efc9133e1433585e1bb579cc8fc3 (diff) | |
download | weechat-3b8cc67f2af9aaa3c46b8dd19cc09f8f65db0ce7.zip |
script: fix compilation with -O2 (replace define of _GNU_SOURCE by _XOPEN_SOURCE)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/script/script-repo.c | 4 |
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> |