aboutsummaryrefslogtreecommitdiff
path: root/libs/libuhttpd
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-08-31 00:36:57 -0700
committerRosen Penev <rosenp@gmail.com>2020-09-01 19:25:35 -0700
commit9a06c40481f1b141dffced600e5a9a12811b0030 (patch)
tree53b90a9f5a35dead586269fbf017f27354d1d401 /libs/libuhttpd
parent8966849a5a723169bd98519898d0132d6e7341ce (diff)
libuhttpd: fix compilation with uClibc-ng
Upstream backport. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libs/libuhttpd')
-rw-r--r--libs/libuhttpd/Makefile2
-rw-r--r--libs/libuhttpd/patches/010-offset.patch10
2 files changed, 11 insertions, 1 deletions
diff --git a/libs/libuhttpd/Makefile b/libs/libuhttpd/Makefile
index b19ee58ab..3cdc00910 100644
--- a/libs/libuhttpd/Makefile
+++ b/libs/libuhttpd/Makefile
@@ -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
index 000000000..f534e030c
--- /dev/null
+++ b/libs/libuhttpd/patches/010-offset.patch
@@ -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>