From 5dd2d189ada193841285d8c19ff998de9f1574d2 Mon Sep 17 00:00:00 2001 From: Ian Wilson Date: Thu, 8 Sep 2011 19:41:53 -0400 Subject: Fixes for compiling with Solaris kernel. Fixed typo in CONF_PLATFORM_SOLARIS. Made sure that we don't try to use the gcc endianness for Solaris. Included sys/filio.h for Solaris so that FIONBIO is defined. Added linking flags -lsocket and -lnsl for Solaris in bam. --- bam.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bam.lua') diff --git a/bam.lua b/bam.lua index 5816a26d..46cc18dd 100644 --- a/bam.lua +++ b/bam.lua @@ -159,6 +159,11 @@ function build(settings) else settings.link.libs:Add("pthread") end + + if platform == "solaris" then + settings.link.flags:Add("-lsocket") + settings.link.flags:Add("-lnsl") + end elseif family == "windows" then settings.link.libs:Add("gdi32") settings.link.libs:Add("user32") -- cgit 1.4.1