Browse code

Ensure sys/un.h autoconf detection includes sys/socket.h

This is required to build an Android binary.

Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: David Sommerseth <davids@redhat.com>

Adriaan de Jong authored on 2012/04/12 15:50:12
Showing 1 changed files
... ...
@@ -363,7 +363,7 @@ AC_CHECK_HEADERS([ \
363 363
 	windows.h winsock2.h ws2tcpip.h \
364 364
 ])
365 365
 AC_CHECK_HEADERS([ \
366
-	sys/time.h sys/un.h sys/ioctl.h sys/stat.h \
366
+	sys/time.h sys/ioctl.h sys/stat.h \
367 367
 	sys/mman.h sys/file.h \
368 368
 	unistd.h signal.h libgen.h stropts.h \
369 369
 	syslog.h pwd.h grp.h \
... ...
@@ -402,7 +402,7 @@ SOCKET_INCLUDES="
402 402
 "
403 403
 
404 404
 AC_CHECK_HEADERS(
405
-	[net/if.h netinet/ip.h netinet/if_ether.h resolv.h],
405
+	[net/if.h netinet/ip.h netinet/if_ether.h resolv.h sys/un.h],
406 406
 	,
407 407
 	,
408 408
 	[[${SOCKET_INCLUDES}]]