diff options
author | Andi Gutmans <andi@php.net> | 2000-09-11 19:14:42 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-09-11 19:14:42 +0000 |
commit | f5cf7d7eb752e04e02799a652507481f74db32b6 (patch) | |
tree | 806a4273d0681a2b61b6acaca5355483839645c4 | |
parent | b510fcf96e9b1d4af967dc1c020375a127f76741 (diff) | |
download | php-git-f5cf7d7eb752e04e02799a652507481f74db32b6.tar.gz |
- Windows and UNIX compile fixes
-rw-r--r-- | main/php_open_temporary_file.c | 4 | ||||
-rw-r--r-- | win32/php4dllts.dsp | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index 50a0879c1a..68d4edcde2 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -22,6 +22,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> + #ifdef PHP_WIN32 #include <windows.h> #include <winsock.h> @@ -35,7 +36,6 @@ #include <netdb.h> #include <arpa/inet.h> #endif -#endif #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif @@ -86,7 +86,9 @@ static FILE *php_do_open_temporary_file(char *path, const char *pfx, char **open char *trailing_slash; FILE *fp; char *opened_path; +#ifndef PHP_WIN32 int fd; +#endif if (!path) { return NULL; diff --git a/win32/php4dllts.dsp b/win32/php4dllts.dsp index 35174c9140..d1008123b3 100644 --- a/win32/php4dllts.dsp +++ b/win32/php4dllts.dsp @@ -292,6 +292,14 @@ SOURCE=..\main\SAPI.h SOURCE=..\main\win95nt.h
# End Source File
# End Group
+# Begin Source File
+
+SOURCE=..\main\php_open_temporary_file.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\main\php_open_temporary_file.h
+# End Source File
# End Group
# Begin Group "Function Modules"
|