summaryrefslogtreecommitdiff
path: root/src/pgm_socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pgm_socket.cpp')
-rw-r--r--src/pgm_socket.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/pgm_socket.cpp b/src/pgm_socket.cpp
index 1c214a8..7747fe0 100644
--- a/src/pgm_socket.cpp
+++ b/src/pgm_socket.cpp
@@ -26,10 +26,18 @@
#ifdef XS_HAVE_WINDOWS
#include "windows.hpp"
-#endif
-
-#ifdef XS_HAVE_LINUX
-#include <poll.h>
+#else
+# if HAVE_SYS_TYPES
+# include <sys/types.h>
+# endif
+# if HAVE_SYS_SELECT_H
+# include <sys/select.h>
+# endif
+# if HAVE_POLL_H
+# include <poll.h>
+# elif HAVE_SYS_POLL_H
+# include <sys/poll.h>
+# endif
#endif
#include <stdlib.h>