fix: include sys/types.h for BSD type definitions
Add #include <sys/types.h> before net-snmp headers to provide u_char and other BSD-style type definitions required by net-snmp. This fixes compilation errors in CI/Docker builds on Linux.
This commit is contained in:
parent
5286d8acba
commit
bcba9e67a0
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
// Directly links to libnetsnmp without Rust layer
|
// Directly links to libnetsnmp without Rust layer
|
||||||
|
|
||||||
#include <erl_nif.h>
|
#include <erl_nif.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <net-snmp/net-snmp-config.h>
|
#include <net-snmp/net-snmp-config.h>
|
||||||
#include <net-snmp/net-snmp-includes.h>
|
#include <net-snmp/net-snmp-includes.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue