diff --git a/SystemInformation.cxx b/SystemInformation.cxx
index 7545ec74f1c4c9dd1e0aea7f02d9e9606071b659..d368fa29f3d36a0c9dcb487caf5a98d065ccebbd 100644
--- a/SystemInformation.cxx
+++ b/SystemInformation.cxx
@@ -112,7 +112,8 @@ typedef int siginfo_t;
 #  endif
 #endif
 
-#if defined(__linux) || defined(__sun) || defined(_SCO_DS)
+#if defined(__linux) || defined(__sun) || defined(_SCO_DS) ||                 \
+  defined(__GLIBC__) || defined(__GNU__)
 #  include <netdb.h>
 #  include <netinet/in.h>
 #  include <sys/socket.h>