You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
811 B
23 lines
811 B
--- httrack-3.49.2/src/proxy/store.c 2017-04-02 01:08:17.000000000 +0530
|
|
+++ store.c 2018-04-10 12:10:59.385000003 +0530
|
|
@@ -30,9 +30,9 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <time.h>
|
|
-#ifdef __ANDROID__
|
|
+/* #ifdef __ANDROID__
|
|
static long int timezone = 0;
|
|
-#endif
|
|
+#endif */
|
|
|
|
/* Locking */
|
|
#ifdef _WIN32
|
|
@@ -1941,7 +1941,7 @@
|
|
|
|
if (t != (time_t) - 1 && t != (time_t) 0) {
|
|
/* BSD does not have static "timezone" declared */
|
|
-#if (defined(BSD) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__))
|
|
+#if (defined(BSD) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)) || defined(__ANDROID__)
|
|
time_t now = time(NULL);
|
|
time_t timezone = -localtime(&now)->tm_gmtoff;
|
|
#endif
|
|
|