[pypy-svn] pypy default: Fix compilation on Windows

amauryfa commits-noreply at bitbucket.org
Fri Feb 4 12:04:04 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r41602:3a51b7723c9c
Date: 2011-02-04 11:56 +0100
http://bitbucket.org/pypy/pypy/changeset/3a51b7723c9c/

Log:	Fix compilation on Windows

diff --git a/pypy/translator/c/src/signals.h b/pypy/translator/c/src/signals.h
--- a/pypy/translator/c/src/signals.h
+++ b/pypy/translator/c/src/signals.h
@@ -119,7 +119,12 @@
 
     if (wakeup_fd != -1) 
       {
-        ssize_t res = write(wakeup_fd, "\0", 1);
+#ifndef _WIN32
+        ssize_t res;
+#else
+        int res;
+#endif
+        res = write(wakeup_fd, "\0", 1);
         /* the return value is ignored here */
       }
 }


More information about the Pypy-commit mailing list