When checking for <net/if.h>, #include <sys/socket.h> first.
commite019038c1788c939fd697be9cc73d204d45aff90
authorKalle Olavi Niemitalo <kon@iki.fi>
Tue, 29 Jul 2008 16:09:28 +0000 (29 19:09 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Thu, 31 Jul 2008 21:40:34 +0000 (1 00:40 +0300)
treea5b507d5e8e213749456ea9199045330f3f42ff6
parentabe4927d695dc762f3879765c3bb7b85dd4d4ba9
When checking for <net/if.h>, #include <sys/socket.h> first.

On Mac OS X 10.5.4, <net/if.h> does not #include <sys/socket.h> but
uses struct sockaddr defined there.  Autoconf 2.61 generates a
configure script that warns if the header can be preprocessed but not
compiled.  The Autoconf manual cautions that future versions of
Autoconf will treat the file as missing in this case.  To let ELinks
detect <net/if.h> even with a future Autoconf, make the test program
#include <sys/socket.h> before <net/if.h>.
configure.in