net-snmp: fix PRIdPTR macro undefined error
authorWei-Ting Yang <[email protected]>
Tue, 22 Apr 2025 07:45:08 +0000 (15:45 +0800)
committerRobert Marko <[email protected]>
Wed, 23 Apr 2025 13:06:16 +0000 (15:06 +0200)
commitbabc163fe36e0f81d257f9e599f585f4930e6460
tree1fe7a7a19e94e7884f6dc841ae4b816cd59e8813
parent533d32face8fbf0ec7a4dd88f8026bb139128c8c
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 <[email protected]>
net/net-snmp/patches/750-ieee802dot11.patch