Fix missing prototype warnings.
authorPeter Bright <drpizza@quiscalusmexicanus.org>
Sun, 7 Aug 2011 17:44:11 +0000 (18:44 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Sun, 7 Aug 2011 21:22:34 +0000 (14:22 -0700)
deps/uv/src/eio/eio.c

index c8d1e018026fd73154b6faa78c59709dc100567f..dc694743296d6759e4b50b4c37ace16e3b46d2c6 100644 (file)
@@ -110,6 +110,8 @@ static void eio_destroy (eio_req *req);
 
 #ifdef _WIN32
 
+  #include <direct.h>
+
   #undef PAGESIZE
   #define PAGESIZE 4096 /* GetSystemInfo? */
 
@@ -140,6 +142,9 @@ static void eio_destroy (eio_req *req);
   #define statvfs(path,buf)    EIO_ENOSYS ()
   #define fstatvfs(fd,buf)     EIO_ENOSYS ()
 
+  #define getcwd(buf,s)        _getcwd(buf, s)
+  #define rmdir(path)          _rmdir(path)
+
   /* rename() uses MoveFile, which fails to overwrite */
   #define rename(old,neu)      eio__rename (old, neu)