diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-04-27 14:37:37 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-04-27 14:37:37 (GMT) |
| commit | 502c5ac1920ec1cbe96c0e9f113c4946c2dbce22 (patch) | |
| tree | cbb2ef3605bfac2d9176a53132f1329d8edcd7ac /unix/tclUnixPort.h | |
| parent | ad3fcf87aceb3e54e6c3dcccc517fd52bdef16b9 (diff) | |
| parent | 8bf5fdf9e1d9dc7f24b23a35f5a63633a376b8b7 (diff) | |
| download | tcl-502c5ac1920ec1cbe96c0e9f113c4946c2dbce22.zip tcl-502c5ac1920ec1cbe96c0e9f113c4946c2dbce22.tar.gz tcl-502c5ac1920ec1cbe96c0e9f113c4946c2dbce22.tar.bz2 | |
Move CYGWIN-specific stuff from tclPort.h to tclUnixPort.h, where it belongs
Diffstat (limited to 'unix/tclUnixPort.h')
| -rw-r--r-- | unix/tclUnixPort.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 98ef3c8..22872e4 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -79,8 +79,17 @@ typedef off_t Tcl_SeekOffset; #endif #ifdef __CYGWIN__ -MODULE_SCOPE int TclOSstat(const char *name, Tcl_StatBuf *statBuf); -MODULE_SCOPE int TclOSlstat(const char *name, Tcl_StatBuf *statBuf); +# define USE_PUTENV 1 +# define USE_PUTENV_FOR_UNSET 1 +/* On Cygwin, the environment is imported from the Cygwin DLL. */ +# define environ __cygwin_environ +# define timezone _timezone + DLLIMPORT extern char **__cygwin_environ; + DLLIMPORT extern int cygwin_conv_to_win32_path(const char *, char *); + DLLIMPORT extern int cygwin_posix_to_win32_path_list_buf_size(char *value); + DLLIMPORT extern void cygwin_posix_to_win32_path_list(char *buf, char *value); + MODULE_SCOPE int TclOSstat(const char *name, Tcl_StatBuf *statBuf); + MODULE_SCOPE int TclOSlstat(const char *name, Tcl_StatBuf *statBuf); #elif defined(HAVE_STRUCT_STAT64) # define TclOSstat stat64 # define TclOSlstat lstat64 |
