aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-06-28 00:07:33 +0200
committerRon Yorston <rmy@pobox.com>2017-08-23 12:51:24 +0100
commit9d989adec01904ad5a3c1021e4f610c39fa27b94 (patch)
tree18d48c92642af431813a1a8ded9a3f2653f60cdc
parent8fa942c9dd98a1921fbffbcb6b3f85fea8eda1c8 (diff)
downloadbusybox-w32-9d989adec01904ad5a3c1021e4f610c39fa27b94.tar.gz
busybox-w32-9d989adec01904ad5a3c1021e4f610c39fa27b94.tar.bz2
busybox-w32-9d989adec01904ad5a3c1021e4f610c39fa27b94.zip
win32/strptime: ensure that strptime()/localtime_r() are declared
When `#include`ing libbb.h, it implicitly includes mingw.h (with a prototype for strptime()) and it also defines _POSIX_THREAD_SAFE_FUNCTIONS so that the time.h header declares localtime_r(). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Ron Yorston <rmy@pobox.com>
-rw-r--r--win32/strptime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/strptime.c b/win32/strptime.c
index 89fb8b736..f84b8dbc0 100644
--- a/win32/strptime.c
+++ b/win32/strptime.c
@@ -21,6 +21,7 @@
21 * and lightly edited. 21 * and lightly edited.
22 */ 22 */
23 23
24#include "libbb.h"
24#include <time.h> 25#include <time.h>
25 26
26#include <assert.h> 27#include <assert.h>