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 '<inttypes.h>'; did you forget to '#include <inttypes.h>'? 30 | #include "util_funcs/header_generic.h" +++ |+#include <inttypes.h> 31 | ``` Signed-off-by: Wei-Ting Yang <williamatcg@gmail.com>
This commit is contained in:
parent
533d32face
commit
babc163fe3
|
@ -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 <inttypes.h>
|
||||
+#include <net-snmp/net-snmp-config.h>
|
||||
+#include <net-snmp/net-snmp-includes.h>
|
||||
+#include <net-snmp/agent/net-snmp-agent-includes.h>
|
||||
|
|
Loading…
Reference in New Issue