libuhttpd: fix compilation with uClibc-ng 13272/head
authorRosen Penev <rosenp@gmail.com>
Mon, 31 Aug 2020 07:36:57 +0000 (00:36 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 2 Sep 2020 02:25:35 +0000 (19:25 -0700)
Upstream backport.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libuhttpd/Makefile
libs/libuhttpd/patches/010-offset.patch [new file with mode: 0644]

index b19ee58ab063b355a4f350afc459e1f9c495f43e..3cdc009100c6b8cc7fb530bc33dff24547099709 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libuhttpd
 PKG_VERSION:=3.2.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL=https://github.com/zhaojh329/libuhttpd/releases/download/v$(PKG_VERSION)
diff --git a/libs/libuhttpd/patches/010-offset.patch b/libs/libuhttpd/patches/010-offset.patch
new file mode 100644 (file)
index 0000000..f534e03
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/src/file.c
++++ b/src/file.c
+@@ -24,6 +24,7 @@
+ #define _DEFAULT_SOURCE
+ #define _XOPEN_SOURCE
++#define _FILE_OFFSET_BITS 64
+ #include <stdio.h>
+ #include <stdlib.h>