From e6fb545d1d0290f49658716a4d3a713e21dd7f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 24 Aug 2024 15:21:12 +0800 Subject: [PATCH] LocalIP (Linux): try fixing musl build --- src/detection/localip/localip_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/localip/localip_linux.c b/src/detection/localip/localip_linux.c index dda8b1ffd..011c4e7ed 100644 --- a/src/detection/localip/localip_linux.c +++ b/src/detection/localip/localip_linux.c @@ -185,7 +185,7 @@ const char* ffDetectLocalIps(const FFLocalIpOptions* options, FFlist* results) #ifdef __linux__ struct ethtool_cmd edata = { .cmd = ETHTOOL_GSET }; - ifr.ifr_data = (caddr_t) &edata; + ifr.ifr_data = (void*) &edata; if (ioctl(sockfd, SIOCETHTOOL, &ifr) == 0) iface->speed = (int32_t) ethtool_cmd_speed(&edata); #elif __FreeBSD__ || __APPLE__