]> granicus.if.org Git - php/commitdiff
- More TSRM work
authorAndi Gutmans <andi@php.net>
Sun, 3 Sep 2000 18:58:46 +0000 (18:58 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 3 Sep 2000 18:58:46 +0000 (18:58 +0000)
TSRM/tsrm_config.w32.h [new file with mode: 0644]
TSRM/tsrm_virtual_cwd.c
TSRM/tsrm_virtual_cwd.h

diff --git a/TSRM/tsrm_config.w32.h b/TSRM/tsrm_config.w32.h
new file mode 100644 (file)
index 0000000..709d900
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef TSRM_CONFIG_W32_H
+#define TSRM_CONFIG_W32_H
+
+#define HAVE_UTIME 1
+
+#endif
index f1ed8a0e3ab4ab4d0d5ee398e3d26c859d38347d..5589d75dcc2ca8855ac7c5b5f698c389f779ac2a 100644 (file)
 #include <fcntl.h>
 
 #include "tsrm_virtual_cwd.h"
-
-#ifndef TSRM_WIN32
-#include "tsrm_config.h"
-#endif
-
 #include "tsrm_strtok_r.h"
 
 
@@ -513,7 +508,7 @@ CWD_API FILE *virtual_fopen(const char *path, const char *mode)
        return f;
 }
 
-#if HAVE_UTIME || defined(TSRM_WIN32)
+#if HAVE_UTIME
 CWD_API int virtual_utime(const char *filename, struct utimbuf *buf)
 {
        cwd_state new_state;
index b6875dfe4b122e98a7707e4e4a89a2799cf8526e..8d4c2c32cd5b16a58b23fd6d69087c513303fd21 100644 (file)
 # define TSRM_WIN32
 #endif
 
+#ifndef TSRM_WIN32
+# include "tsrm_config.h"
+#else
+# include "tsrm_config.w32.h"
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <ctype.h>