Previous fix (commit eb973e055bc249948) fixed NetBSD but not OpenBSD
(include <sys/socket.h> *after* <sys/types.h>)
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: krzee <jeff@doeshosting.com>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
| ... | ... |
@@ -368,12 +368,12 @@ if test "${WIN32}" != "yes"; then
|
| 368 | 368 |
linux/types.h sys/poll.h sys/epoll.h err.h dnl |
| 369 | 369 |
) |
| 370 | 370 |
AC_CHECK_HEADERS(net/if.h,,, |
| 371 |
- [#ifdef HAVE_SYS_SOCKET_H |
|
| 372 |
- # include <sys/socket.h> |
|
| 373 |
- #endif |
|
| 374 |
- #ifdef HAVE_SYS_TYPES_H |
|
| 371 |
+ [#ifdef HAVE_SYS_TYPES_H |
|
| 375 | 372 |
# include <sys/types.h> |
| 376 | 373 |
#endif |
| 374 |
+ #ifdef HAVE_SYS_SOCKET_H |
|
| 375 |
+ # include <sys/socket.h> |
|
| 376 |
+ #endif |
|
| 377 | 377 |
]) |
| 378 | 378 |
AC_CHECK_HEADERS(netinet/ip.h,,, |
| 379 | 379 |
[#ifdef HAVE_SYS_TYPES_H |