summaryrefslogtreecommitdiff
path: root/ev_select.c
diff options
context:
space:
mode:
authorroot <root>2007-11-06 13:17:55 +0000
committerroot <root>2007-11-06 13:17:55 +0000
commit4ee0973144c5b6c7cf136b1256e7ce9cb802e682 (patch)
treedb38b2f89e37183bb2329c0c8333fb0dbdbaf4e4 /ev_select.c
parent06eac6f8c010d4bd41a19feca9db3ac13d3cafb3 (diff)
now port to microsofts goddamn broken pseudo-c-we-do-it-different-to-spite-you so-called c compiler
Diffstat (limited to 'ev_select.c')
-rw-r--r--ev_select.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/ev_select.c b/ev_select.c
index e3e79ca..60cc084 100644
--- a/ev_select.c
+++ b/ev_select.c
@@ -29,18 +29,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/* for broken bsd's */
-#include <sys/time.h>
-#include <sys/types.h>
-#include <unistd.h>
-
/* for unix systems */
-#ifndef WIN32
+#ifdef WIN32
+typedef unsigned int uint32_t;
+#else
# include <sys/select.h>
+# include <inttypes.h>
#endif
#include <string.h>
-#include <inttypes.h>
static void
select_modify (EV_P_ int fd, int oev, int nev)