diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-09-18 09:47:30 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-09-18 09:47:30 +0200 |
commit | 9b607d38f588ac0841893f496581992d2e932438 (patch) | |
tree | 9b06a13613f58d51c0dbee24143b846e726ff3be /src | |
parent | 7a63b4aa624274d0d21772f0a84e3340c20f42ed (diff) | |
download | weechat-9b607d38f588ac0841893f496581992d2e932438.zip |
script: do not define _XOPEN_SOURCE on OpenBSD (bugs with gcrypt) (bug #37373)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/script/script-repo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c index dd9e3533e..6ea49b1f3 100644 --- a/src/plugins/script/script-repo.c +++ b/src/plugins/script/script-repo.c @@ -21,7 +21,13 @@ * script-repo.c: download and read repository file (plugins.xml.gz) */ +/* + * this define is needed for strptime() + * but is not used for OpenBSD, it causes bug with gcrypt (see bug #37373) + */ +#if !defined(__OpenBSD__) #define _XOPEN_SOURCE 700 +#endif #include <limits.h> #include <stdlib.h> |