diff --git a/SystemInformation.cxx b/SystemInformation.cxx
index a0c01f82e9610e936cb2f5e0e665d34a679b71bf..56a635a673ce68cabb7ca7fa35594ddb163ccf49 100644
--- a/SystemInformation.cxx
+++ b/SystemInformation.cxx
@@ -114,7 +114,7 @@ typedef int siginfo_t;
 # endif
 #endif
 
-#ifdef __linux
+#if defined(__linux) || defined (__sun) || defined(_SCO_DS)
 # include <fenv.h>
 # include <sys/socket.h>
 # include <netdb.h>