0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-05 04:13:08 +00:00
Files
packages/net/ntpd/patches/010-gcc14.patch
Rosen Penev ffe0cea2ff ntpd: update to 4.2.8p18
Add small patch fixing compilation with GCC14.

Remove inactive maintainer.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2025-05-01 23:10:30 +02:00

12 lines
295 B
Diff

--- a/libntp/machines.c
+++ b/libntp/machines.c
@@ -477,7 +477,7 @@ ntp_set_tod(
#endif /* HAVE_SETTIMEOFDAY */
#ifdef HAVE_STIME
if (rc && (SET_TOD_STIME == tod || !tod)) {
- long tp = tvp->tv_sec;
+ time_t tp = tvp->tv_sec;
errno = 0;
rc = stime(&tp); /* lie as bad as SysVR4 */