diff options
Diffstat (limited to 'src/include/ndpi_win32.h')
-rw-r--r-- | src/include/ndpi_win32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ndpi_win32.h b/src/include/ndpi_win32.h index 3b568beb9..f653caa51 100644 --- a/src/include/ndpi_win32.h +++ b/src/include/ndpi_win32.h @@ -62,7 +62,7 @@ typedef unsigned __int64 u_int64_t; #define pthread_rwlock_unlock pthread_mutex_unlock #define pthread_rwlock_destroy pthread_mutex_destroy -#define gmtime_r(a, b) gmtime(a) /* Already thread safe on windows */ +#define gmtime_r(a, b) memcpy(b, gmtime(a), sizeof(struct tm)) extern unsigned long waitForNextEvent(unsigned long ulDelay /* ms */); |