diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xplist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xplist.c b/src/xplist.c index dc824e2..43b0422 100644 --- a/src/xplist.c +++ b/src/xplist.c | |||
| @@ -25,6 +25,10 @@ | |||
| 25 | #include <config.h> | 25 | #include <config.h> |
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| 28 | #ifdef HAVE_STRPTIME | ||
| 29 | #define _XOPEN_SOURCE 600 | ||
| 30 | #endif | ||
| 31 | |||
| 28 | #include <string.h> | 32 | #include <string.h> |
| 29 | #include <assert.h> | 33 | #include <assert.h> |
| 30 | #include <stdlib.h> | 34 | #include <stdlib.h> |
| @@ -354,7 +358,7 @@ static void parse_date(const char *strval, struct TM *btime) | |||
| 354 | if (!btime) return; | 358 | if (!btime) return; |
| 355 | memset(btime, 0, sizeof(struct tm)); | 359 | memset(btime, 0, sizeof(struct tm)); |
| 356 | if (!strval) return; | 360 | if (!strval) return; |
| 357 | #ifdef strptime | 361 | #ifdef HAVE_STRPTIME |
| 358 | strptime((char*)strval, "%Y-%m-%dT%H:%M:%SZ", btime); | 362 | strptime((char*)strval, "%Y-%m-%dT%H:%M:%SZ", btime); |
| 359 | #else | 363 | #else |
| 360 | #ifdef USE_TM64 | 364 | #ifdef USE_TM64 |
