From bcba9e67a0233dcf7600222641deeb7ae1117c40 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 30 Jan 2026 13:11:24 -0600 Subject: [PATCH] fix: include sys/types.h for BSD type definitions Add #include 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. --- c_src/towerops_nif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/c_src/towerops_nif.c b/c_src/towerops_nif.c index cc257853..65627bfe 100644 --- a/c_src/towerops_nif.c +++ b/c_src/towerops_nif.c @@ -2,6 +2,7 @@ // Directly links to libnetsnmp without Rust layer #include +#include #include #include #include