]> granicus.if.org Git - php/commitdiff
- Make php_virtual_cwd compile
authorAndi Gutmans <andi@php.net>
Sat, 1 Apr 2000 18:11:08 +0000 (18:11 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 1 Apr 2000 18:11:08 +0000 (18:11 +0000)
Makefile.in
main/php_virtual_cwd.c
main/php_virtual_cwd.h

index 77378a906547c408a7df536b252674ece4c6d2dc..b580462243edacc9a62256b063f1ecc7387fef37 100644 (file)
@@ -14,7 +14,7 @@ LTLIBRARY_SOURCES = \
        configuration-parser.c configuration-scanner.c \
        safe_mode.c fopen-wrappers.c php_realpath.c alloca.c \
        php_ini.c SAPI.c rfc1867.c dlist.c php_content_types.c strlcpy.c \
-       strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c
+       strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c php_virtual_cwd.c
 
 LTLIBRARY_DEPENDENCIES = \
                Zend/libZend.la \
index 1678fe308a4fb8774b7665d38da6308ae4d47e65..a09d9826a5a0e84079b15d3d59db9972f74164a9 100644 (file)
@@ -9,6 +9,13 @@
 
 #include "php_virtual_cwd.h"
 
+#ifdef ZTS
+#include "TSRM.h"
+CWD_API int cwd_globals_id;
+#else
+cwd_globals_struct cwd_globals;
+#endif
+
 #ifndef PHP_WIN32
 #include <unistd.h>
 #endif
index 1e97732df546557df7e39f44a6ae0fd58b92e1ef..42149ebdac4af47830c974a1bdb3060c205a5342 100644 (file)
@@ -3,6 +3,16 @@
 
 #include "zend.h"
 
+#ifdef PHP_WIN32
+#       ifdef CWD_EXPORTS
+#       define CWD_API __declspec(dllexport)
+#       else
+#       define CWD_API __declspec(dllimport)
+#       endif
+#else
+#define CWD_API
+#endif
+
 typedef struct _cwd_state {
        char *cwd;
        int cwd_length;