Browse Source

- More TSRM work

PHP-4.0.5
Andi Gutmans 26 years ago
parent
commit
1109b9ab57
  1. 6
      TSRM/tsrm_config.w32.h
  2. 7
      TSRM/tsrm_virtual_cwd.c
  3. 6
      TSRM/tsrm_virtual_cwd.h

6
TSRM/tsrm_config.w32.h

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

7
TSRM/tsrm_virtual_cwd.c

@ -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;

6
TSRM/tsrm_virtual_cwd.h

@ -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>

Loading…
Cancel
Save