summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-25 12:09:24 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-25 12:09:24 +0000
commit3c084000e2e4f2c4451bb083716f6c2e400c7ee0 (patch)
tree77e0e02fe576ce26b773d31534842c7c57649bfc
parenta7091e0ea47de0ac6ef716d527a3606b5a03492f (diff)
Fixed sunos 5.11 support, and a header issue with the ports socketengine. Patch by Stskeeps
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7409 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure4
-rw-r--r--src/socketengine_ports.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index d40027346..67b2fd3ab 100755
--- a/configure
+++ b/configure
@@ -487,7 +487,7 @@ $has_ports = 1 if ($system eq "SunOS");
if ($has_ports) {
my $kernel = `uname -r`;
chomp($kernel);
- if (($kernel !~ /^5\.10/)) {
+ if (($kernel !~ /^5\.1./)) {
$has_ports = 0;
}
}
@@ -934,7 +934,7 @@ sub getosflags {
$config{LDLIBS} .= " " . $ENV{LDLIBS} if exists($ENV{LDLIBS});
}
- if ($config{OSNAME} =~ /SunOS/i)
+ if ($config{OSNAME} =~ /SunOS/i or $config{OSNAME} =~ /solaris/i)
{
# solaris/sunos needs these
# socket = bsd sockets api
diff --git a/src/socketengine_ports.cpp b/src/socketengine_ports.cpp
index 5a8c616a5..869e0a6fb 100644
--- a/src/socketengine_ports.cpp
+++ b/src/socketengine_ports.cpp
@@ -13,7 +13,7 @@
#include "inspircd.h"
#include "exitcodes.h"
-#include <sys/epoll.h>
+#include <port.h>
#include "socketengine_ports.h"
PortsEngine::PortsEngine(InspIRCd* Instance) : SocketEngine(Instance)