From 3cf17ad13023928f5eab925e1d157319a74f50ef Mon Sep 17 00:00:00 2001 From: Tony Ambardar Date: Wed, 6 Mar 2024 01:18:34 -0800 Subject: [PATCH] zabbix: zabbix_helper_mac80211.c: use POSIX header The musl libc only implements POSIX basename() but provided a GNU header kludge in , which was removed in musl 1.2.5 [1]. Use the standard header to avoid compilation warnings like: zabbix-6.4.7/zabbix-extra-mac80211/zabbix_helper_mac80211.c:37:11: warning: implicit declaration of function 'basename' [-Wimplicit-function-declaration] 37 | phy = basename(phy); | ^~~~~~~~ zabbix-6.4.7/zabbix-extra-mac80211/zabbix_helper_mac80211.c:37:9: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 37 | phy = basename(phy); | ^ zabbix-6.4.7/zabbix-extra-mac80211/zabbix_helper_mac80211.c:38:10: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 38 | stat = basename(stat); | ^ Link 1: https://git.musl-libc.org/cgit/musl/log/?qt=grep&q=basename Signed-off-by: Tony Ambardar --- admin/zabbix/Makefile | 2 +- admin/zabbix/files/zabbix_helper_mac80211.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/zabbix/Makefile b/admin/zabbix/Makefile index c4f8c464ac..b395b6134c 100644 --- a/admin/zabbix/Makefile +++ b/admin/zabbix/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=zabbix PKG_VERSION:=6.4.7 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://cdn.zabbix.com/zabbix/sources/stable/$(basename $(PKG_VERSION))/ \ diff --git a/admin/zabbix/files/zabbix_helper_mac80211.c b/admin/zabbix/files/zabbix_helper_mac80211.c index 1442d27432..e03c46c3df 100644 --- a/admin/zabbix/files/zabbix_helper_mac80211.c +++ b/admin/zabbix/files/zabbix_helper_mac80211.c @@ -1,6 +1,7 @@ #define _GNU_SOURCE #include #include +#include #include #include #include -- 2.30.2