There is on Android: - sys/un.h includes linux/un.h - linux/un.h uses sa_family_t - sa_family_t is defined in linux/socket.h - which is included from sys/socket.h
Therefore, sys/socket.h is required for linux/un.h... Hope that clarifies things, Adriaan -----Original Message----- From: Alon Bar-Lev [mailto:alon.bar...@gmail.com] Sent: zaterdag 14 april 2012 18:58 To: Adriaan de Jong Cc: openvpn-devel@lists.sourceforge.net Subject: Re: [Openvpn-devel] [PATCH] Ensure sys/un.h autoconf detection includes sys/socket.h This is strange! As there is nothing in this file that needs dependency. Can you please send me config.log and the un.h file for me to learn? On Thu, Apr 12, 2012 at 9:50 AM, Adriaan de Jong <dej...@fox-it.com> wrote: > This is required to build an Android binary. > > Signed-off-by: Adriaan de Jong <dej...@fox-it.com> > --- > configure.ac | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac index 70c51e7..dc5bb43 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -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 \ > @@ -399,7 +399,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}]] > -- > 1.7.5.4 > > > ---------------------------------------------------------------------- > -------- For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel