Skip to content

Commit

Permalink
Ensure sys/un.h autoconf detection includes sys/socket.h
Browse files Browse the repository at this point in the history
This is required to build an Android binary.

Signed-off-by: Adriaan de Jong <[email protected]>
Acked-by: Alon Bar-Lev <[email protected]>
Signed-off-by: David Sommerseth <[email protected]>
  • Loading branch information
andj authored and David Sommerseth committed Apr 26, 2012
1 parent a9da960 commit a2d747b
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 @@ -363,7 +363,7 @@ AC_CHECK_HEADERS([ \
windows.h winsock2.h ws2tcpip.h \
])
AC_CHECK_HEADERS([ \
sys/time.h sys/un.h sys/ioctl.h sys/stat.h \
sys/time.h sys/ioctl.h sys/stat.h \
sys/mman.h sys/file.h \
unistd.h signal.h libgen.h stropts.h \
syslog.h pwd.h grp.h \
Expand Down Expand Up @@ -402,7 +402,7 @@ SOCKET_INCLUDES="
"

AC_CHECK_HEADERS(
[net/if.h netinet/ip.h netinet/if_ether.h resolv.h],
[net/if.h netinet/ip.h netinet/if_ether.h resolv.h sys/un.h],
,
,
[[${SOCKET_INCLUDES}]]
Expand Down

0 comments on commit a2d747b

Please sign in to comment.