From babc163fe36e0f81d257f9e599f585f4930e6460 Mon Sep 17 00:00:00 2001 From: Wei-Ting Yang Date: Tue, 22 Apr 2025 15:45:08 +0800 Subject: [PATCH] net-snmp: fix PRIdPTR macro undefined error This commit includes inttypes.h to prevent the following error: ``` mibgroup/ieee802dot11.c: In function 'displayWiExt': mibgroup/ieee802dot11.c:4563:26: error: expected ')' before 'PRIdPTR' 4563 | printf ( "%s sens: %" PRIdPTR "\n", "SIOCGIWSENS", *(intptr_t *)&info.sens ); | ~ ^~~~~~~~ | ) mibgroup/ieee802dot11.c:31:1: note: 'PRIdPTR' is defined in header ''; did you forget to '#include '? 30 | #include "util_funcs/header_generic.h" +++ |+#include 31 | ``` Signed-off-by: Wei-Ting Yang --- net/net-snmp/patches/750-ieee802dot11.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/net-snmp/patches/750-ieee802dot11.patch b/net/net-snmp/patches/750-ieee802dot11.patch index 2eb598a82..7bee514eb 100644 --- a/net/net-snmp/patches/750-ieee802dot11.patch +++ b/net/net-snmp/patches/750-ieee802dot11.patch @@ -1,6 +1,6 @@ --- /dev/null +++ b/agent/mibgroup/ieee802dot11.c -@@ -0,0 +1,4916 @@ +@@ -0,0 +1,4917 @@ +/**************************************************************************** +* * +* File Name: ieee802dot11.c * @@ -25,6 +25,7 @@ +/**************************************************************************** +* Includes * +****************************************************************************/ ++#include +#include +#include +#include