vsftpd: fix compilation with musl 1.2.4
musl 1.2.4 deprecated legacy "LFS64" ("large file support") interfaces so just having _GNU_SOURCE defined is not enough anymore. Manually pass -D_LARGEFILE64_SOURCE to allow to keep using LFS64 definitions. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
2b19da613f
commit
a9cda91502
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=vsftpd
|
PKG_NAME:=vsftpd
|
||||||
PKG_VERSION:=3.0.5
|
PKG_VERSION:=3.0.5
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://security.appspot.com/downloads/
|
PKG_SOURCE_URL:=https://security.appspot.com/downloads/
|
||||||
|
@ -52,6 +52,7 @@ Package/vsftpd-tls/conffiles=$(Package/vsftpd/conffiles)
|
||||||
|
|
||||||
ifneq ($(CONFIG_USE_MUSL),)
|
ifneq ($(CONFIG_USE_MUSL),)
|
||||||
NLSSTRING:=-lcrypt
|
NLSSTRING:=-lcrypt
|
||||||
|
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
|
||||||
else ifneq ($(CONFIG_USE_GLIBC),)
|
else ifneq ($(CONFIG_USE_GLIBC),)
|
||||||
NLSSTRING:=-lcrypt
|
NLSSTRING:=-lcrypt
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue