Changed the makefile system to autoconf/automake.
[cacao.git] / src / threads / green / threadio.c
index 1e7c44a5ae2d225550afc23df1ecd453b62103b2..fed33a70bfc0e140a8f5ea4e9b73d5ec0005a8de 100644 (file)
@@ -12,7 +12,9 @@
 
 #define        DBG(s)                    
 
-#include "sysdep/defines.h"
+#include "config.h"
+
+#include "defines.h"
 
 #include <sys/types.h>
 #include <sys/time.h>
@@ -207,7 +209,7 @@ threadedAccept(int fd, struct sockaddr* addr, int* len)
 #if defined(BLOCKING_CALLS)
        blockOnFile(fd, TH_ACCEPT);
 #endif
-       r = accept(fd, addr, len);
+       r = accept(fd, addr, (size_t*)len);
        if (r >= 0
            || !(errno == EINPROGRESS || errno == EALREADY
                 || errno == EWOULDBLOCK))