Skip to content

Commit

Permalink
configure.ac: fix header checks for macOS (#1224)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitri Papadopoulos Orfanos <[email protected]>
  • Loading branch information
barracuda156 and DimitriPapadopoulos committed Jun 3, 2024
1 parent 5155b2d commit 371edb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ fcntl.h \
getopt.h \
ifaddrs.h \
netdb.h \
net/if.h \
netinet/in.h \
netinet/tcp.h \
pthread.h \
Expand All @@ -74,7 +73,8 @@ unistd.h \
], [], AC_MSG_ERROR([Required header not found]))

# Checks for header files with prerequisites of other headers.
AC_CHECK_HEADERS([net/route.h], [], AC_MSG_ERROR([Required header not found]), [#include <net/if.h>])
AC_CHECK_HEADERS([net/if.h], [], AC_MSG_ERROR([Required header not found]), [#include <sys/socket.h>])
AC_CHECK_HEADERS([net/route.h], [], AC_MSG_ERROR([Required header not found]), [#include <sys/socket.h>], [#include <net/if.h>])

# Checks for optional header files.
AC_CHECK_HEADERS([ \
Expand Down

0 comments on commit 371edb5

Please sign in to comment.