0
0
mirror of https://github.com/openwrt/packages.git synced 2025-10-03 03:30:19 +00:00
Files
packages/libs/libulfius/patches/001-fix-ftbfs-32bit-arches-64bit-time_t.patch
Austin Lane d0deac49ff libulfius: Update to v2.7.15
This library is tightly coupled with liborcania and libyder, they must be updated together.

* Update libulfius to v2.7.15

* Patch libulfius to fix FTBFS on 32-bit architectures with 64-bit time_t
  - Backported from upstream commit: 9457809a5321ca4a87f19fdc3f7f4af68e72afa8

* Remove obsolete CMAKE options for libulfius

Signed-off-by: Austin Lane <vidplace7@gmail.com>
2025-08-23 19:50:49 +03:00

12 lines
484 B
Diff

--- a/src/u_websocket.c
+++ b/src/u_websocket.c
@@ -2313,7 +2313,7 @@ int ulfius_websocket_wait_close(struct _
if (timeout) {
clock_gettime(CLOCK_REALTIME, &abstime);
abstime.tv_sec += ((time_t)timeout / 1000);
- abstime.tv_nsec += (((time_t)timeout%1000) * 1000000);
+ abstime.tv_nsec += ((((long int)timeout)%1000) * 1000000);
if (abstime.tv_nsec > 999999999) {
abstime.tv_nsec %= 1000000000;
abstime.tv_sec ++;