From: Maxim Mamontov <faust.madf@gmail.com>
Date: Tue, 20 Sep 2011 12:49:51 +0000 (+0300)
Subject: Fix headers with select declaration
X-Git-Tag: 2.408-rc1~6
X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/67d54ee1c9c0cacad1c9cd6086b5ce63152bd9b0?ds=inline

Fix headers with select declaration
---

diff --git a/stglibs/common.lib/common.cpp b/stglibs/common.lib/common.cpp
index 2bb327df..e3fbd9a8 100644
--- a/stglibs/common.lib/common.cpp
+++ b/stglibs/common.lib/common.cpp
@@ -28,10 +28,13 @@
  $Author: faust $
  */
 
-#ifdef FREE_BSD
+#include <sys/select.h>
+
+// For old and dub systems
+// Like FreeBSD4
 #include <sys/types.h>
-#endif
 #include <sys/time.h>
+#include <unistd.h>
 
 #ifdef WIN32
 #include <winsock2.h>