diff options
author | Steve Bennett <steveb@workware.net.au> | 2024-04-26 18:57:53 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2024-04-26 18:57:53 +1000 |
commit | bc2a0226c524de0ca8755c9328d26aa89a81d998 (patch) | |
tree | 4ed741adf862f3f0c82659d7195e9ae30d27101a /jimiocompat.h | |
parent | 4b980e667b2a07f5ea3aeb437079db9be6f89979 (diff) | |
download | jimtcl-kos-fixes.zip jimtcl-kos-fixes.tar.gz jimtcl-kos-fixes.tar.bz2 |
fixes for kos-portskos-fixes
Ticket #303
Some of these (like missing getpeername) are reasonable, but
it seems like an odd platform that declares but doesn't implement
access and umask, and implements but doesn't declare lstat.
These changes need testing to see if enough works to be useful.
Diffstat (limited to 'jimiocompat.h')
-rw-r--r-- | jimiocompat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jimiocompat.h b/jimiocompat.h index 0837b73..5cbcde8 100644 --- a/jimiocompat.h +++ b/jimiocompat.h @@ -87,6 +87,9 @@ int Jim_OpenForRead(const char *filename); #define Jim_FileStat fstat #endif #if defined(HAVE_LSTAT) + #if !HAVE_DECL_LSTAT + int lstat (const char *__path, struct stat *__buf ); + #endif #define Jim_LinkStat lstat #endif #endif @@ -123,4 +126,8 @@ int Jim_OpenForRead(const char *filename); */ int Jim_FileStoreStatData(Jim_Interp *interp, Jim_Obj *varName, const jim_stat_t *sb); +#ifndef HAVE_ACCESS +int access(const char *path, int mode); +#endif + #endif |