[patch] Fix configure glitch on Solaris

Eric Botcazou ebotcazou@adacore.com
Sun Dec 6 15:46:00 GMT 2009


Hi,

natVMNetworkInterfacePosix.cc fails to compile under Solaris because 'struct 
ifconf' is not defined because net/if.h is not included, the root problem 
being that net/if.h requires sys/socket.h and the configure machinery doesn't 
provide it.

Hence the attached patch, tested on SPARC/Solaris 9 and AMD64/Linux.  OK for 
mainline?


2009-12-06  Eric Botcazou  <ebotcazou@adacore.com>

	* configure.ac (net/if.h check): Include sys/socket.h if present.
	* configure: Regenerate.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: solaris_libjava.diff
Type: text/x-diff
Size: 957 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20091206/166eb1e3/attachment.bin>


More information about the Java-patches mailing list