OSSP CVS Repository

ossp - Check-in [5607]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5607
Date: 2006-Jul-30 10:00:45 (local)
2006-Jul-30 08:00:45 (UTC)
User:rse
Branch:
Comment: Add support for Windows CygWin and MinGW environments.
Tickets:
Inspections:
Files:
ossp-pkg/js/src/jsfile.c      1.9 -> 1.10     9 inserted, 0 deleted

ossp-pkg/js/src/jsfile.c 1.9 -> 1.10

--- jsfile.c     2006/07/29 09:15:10     1.9
+++ jsfile.c     2006/07/30 08:00:45     1.10
@@ -52,6 +52,11 @@
 /* ----------------- Platform-specific includes and defines ----------------- */
 #if defined(XP_WIN) || defined(XP_OS2)
 #   include <direct.h>
+#ifdef OSSP
+#   include <dirent.h>
+#   include <fcntl.h>
+#   include <time.h>
+#endif
 #   include <io.h>
 #   include <sys/types.h>
 #   include <sys/stat.h>
@@ -60,6 +65,10 @@
 #   define CURRENT_DIR          "c:\\"
 #   define POPEN                _popen
 #   define PCLOSE               _pclose
+#ifdef OSSP
+#   undef mkdir
+#   define mkdir(file, mode)    _mkdir(file)
+#endif
 #elif defined(XP_UNIX) || defined(XP_BEOS)
 #   include <strings.h>
 #   include <stdio.h>

CVSTrac 2.0.1