termux-packages/packages/httrack/store.c.patch
Leonid Pliushch 0d1920a061 move some packages from unstable repository
New packages that will be added:

 * antiword
 * beanshell
 * cabextract
 * deutex
 * direnv
 * exiv2
 * git-lfs
 * gitea
 * hoedown
 * httrack
 * iverilog
 * links
 * loksh
 * mksh
 * mktorrent
 * pdfgrep
 * shellharden
 * swig
 * tidy
 * tweego
 * wordgrinder
2019-05-11 18:36:47 +03:00

24 lines
811 B
Diff

--- 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