1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00

- More TSRM work

This commit is contained in:
Andi Gutmans
2000-09-03 18:58:46 +00:00
parent da19ff78f3
commit 1109b9ab57
3 changed files with 13 additions and 6 deletions

6
TSRM/tsrm_config.w32.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef TSRM_CONFIG_W32_H
#define TSRM_CONFIG_W32_H
#define HAVE_UTIME 1
#endif

View File

@@ -29,11 +29,6 @@
#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;

View File

@@ -26,6 +26,12 @@
# 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>