diff options
-rw-r--r-- | src/plugins/logger/logger.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c index fec15cf71..4a0d9fd1d 100644 --- a/src/plugins/logger/logger.c +++ b/src/plugins/logger/logger.c @@ -21,7 +21,10 @@ * logger.c: logger plugin for WeeChat: save buffer lines to disk files */ +/* this define is needed for strptime() (not on OpenBSD) */ +#if !defined(__OpenBSD__) #define _XOPEN_SOURCE 700 +#endif #include <stdlib.h> #include <unistd.h> |