Skip to content

Commit

Permalink
netcalc.h: add missing include for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jul 25, 2024
1 parent e6fb7d9 commit f8f3754
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/netcalc.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
#include <config.h>
#include <stdint.h>
#include <err.h> /* warnx() et al */
#ifdef __APPLE__
#include <sys/socket.h> /* Has to be included before net/if.h */
#endif
#include <net/if.h> /* IFNAMSIZ */

#define V4ADDR_VAL "0123456789."
Expand Down

0 comments on commit f8f3754

Please sign in to comment.