From 79e507cb34dec4ae725c1a0e68a6fac627bba43f Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Wed, 17 May 2023 11:26:29 +0800 Subject: [PATCH] nfs-kernel-server: 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 --- net/nfs-kernel-server/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/nfs-kernel-server/Makefile b/net/nfs-kernel-server/Makefile index c7a3a1f57b..5996a96200 100644 --- a/net/nfs-kernel-server/Makefile +++ b/net/nfs-kernel-server/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nfs-kernel-server PKG_VERSION:=2.6.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_HASH:=26d46448982252e9e2c8346d10cf13e1143e7089c866f53e25db3359f3e9493c PKG_SOURCE_URL:=@SF/nfs @@ -100,6 +100,10 @@ TARGET_CFLAGS += -Wno-error=implicit-function-declaration \ -Wno-error=undef \ -Wno-error=missing-include-dirs +ifneq ($(CONFIG_USE_MUSL),) + TARGET_CFLAGS += -D_LARGEFILE64_SOURCE +endif + TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libevent CONFIGURE_ARGS += \ -- 2.30.2