47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
diff -ruN xbps-0.60.7/lib/fetch/common.c xbps-0.60.7-banan_os/lib/fetch/common.c
|
|
--- xbps-0.60.7/lib/fetch/common.c 2026-02-09 22:23:08.000000000 +0200
|
|
+++ xbps-0.60.7-banan_os/lib/fetch/common.c 2026-04-18 14:03:30.521070264 +0300
|
|
@@ -163,7 +163,9 @@
|
|
fetchLastErrCode = FETCH_TIMEOUT;
|
|
break;
|
|
case ECONNREFUSED:
|
|
+#ifdef EHOSTDOWN
|
|
case EHOSTDOWN:
|
|
+#endif
|
|
fetchLastErrCode = FETCH_DOWN;
|
|
break;
|
|
default:
|
|
diff -ruN xbps-0.60.7/lib/fetch/ftp.c xbps-0.60.7-banan_os/lib/fetch/ftp.c
|
|
--- xbps-0.60.7/lib/fetch/ftp.c 2026-02-09 22:23:08.000000000 +0200
|
|
+++ xbps-0.60.7-banan_os/lib/fetch/ftp.c 2026-04-18 14:04:26.685837239 +0300
|
|
@@ -138,7 +138,7 @@
|
|
sin4->sin_port = port;
|
|
sin4->sin_family = AF_INET;
|
|
*len = sizeof(struct sockaddr_in);
|
|
-#ifndef __linux__
|
|
+#if !defined(__linux__) && !defined(__banan_os__)
|
|
sin4->sin_len = sizeof(struct sockaddr_in);
|
|
#endif
|
|
}
|
|
@@ -508,7 +508,7 @@
|
|
tm.tm_mon--;
|
|
tm.tm_year = year - 1900;
|
|
tm.tm_isdst = -1;
|
|
- t = timegm(&tm);
|
|
+ t = mktime(&tm);
|
|
if (t == (time_t)-1)
|
|
t = time(NULL);
|
|
us->mtime = t;
|
|
diff -ruN xbps-0.60.7/lib/fetch/http.c xbps-0.60.7-banan_os/lib/fetch/http.c
|
|
--- xbps-0.60.7/lib/fetch/http.c 2026-02-09 22:23:08.000000000 +0200
|
|
+++ xbps-0.60.7-banan_os/lib/fetch/http.c 2026-04-18 14:03:46.645405420 +0300
|
|
@@ -525,7 +525,7 @@
|
|
setlocale(LC_TIME, locale);
|
|
if (r == NULL)
|
|
return (-1);
|
|
- *mtime = timegm(&tm);
|
|
+ *mtime = mktime(&tm);
|
|
return (0);
|
|
}
|
|
|