From f8f37546e9b4447d5490e507441dbee88052061a Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Fri, 26 Jul 2024 05:13:25 +0800 Subject: [PATCH] netcalc.h: add missing include for macOS --- src/netcalc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/netcalc.h b/src/netcalc.h index b31d669..0e5c30b 100644 --- a/src/netcalc.h +++ b/src/netcalc.h @@ -32,6 +32,9 @@ #include #include #include /* warnx() et al */ +#ifdef __APPLE__ +#include /* Has to be included before net/if.h */ +#endif #include /* IFNAMSIZ */ #define V4ADDR_VAL "0123456789."