diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-10-12 20:29:05 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-10-15 11:02:57 +1000 |
commit | 92083f41130290f9e2cf1eedc5750a348fd11809 (patch) | |
tree | 7f848baf4a549979cf495c6347a6d5385e008a45 /jim-file.c | |
parent | 0e2703df31a67c57e23954943f7980c5cc309755 (diff) | |
download | jimtcl-92083f41130290f9e2cf1eedc5750a348fd11809.zip jimtcl-92083f41130290f9e2cf1eedc5750a348fd11809.tar.gz jimtcl-92083f41130290f9e2cf1eedc5750a348fd11809.tar.bz2 |
Portability fixes
Especially for eCos, mingw32 and cygwin
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-file.c')
-rw-r--r-- | jim-file.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -58,6 +58,10 @@ #include "jim.h" #include "jim-subcmd.h" +#ifndef MAXPATHLEN +#define MAXPATHLEN JIM_PATH_LEN +#endif + /* *---------------------------------------------------------------------- * @@ -588,7 +592,7 @@ static int file_cmd_owned(Jim_Interp *interp, int argc, Jim_Obj *const *argv) } #endif -#ifdef S_IFLNK +#if defined(HAVE_READLINK) static int file_cmd_readlink(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { const char *path = Jim_GetString(argv[0], NULL); @@ -760,7 +764,7 @@ static const jim_subcmd_type file_command_table[] = { .maxargs = 3, .description = "Renames a file" }, -#ifdef S_IFLNK +#if defined(HAVE_READLINK) { .cmd = "readlink", .args = "name", .function = file_cmd_readlink, |