aboutsummaryrefslogtreecommitdiff
path: root/jimiocompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'jimiocompat.h')
-rw-r--r--jimiocompat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/jimiocompat.h b/jimiocompat.h
index 64aa4ff..0837b73 100644
--- a/jimiocompat.h
+++ b/jimiocompat.h
@@ -68,6 +68,7 @@ int Jim_OpenForRead(const char *filename);
typedef struct __stat64 jim_stat_t;
#define Jim_Stat _stat64
#define Jim_FileStat _fstat64
+ #define Jim_Lseek _lseeki64
#else
#if defined(HAVE_STAT64)
@@ -89,6 +90,11 @@ int Jim_OpenForRead(const char *filename);
#define Jim_LinkStat lstat
#endif
#endif
+ #if defined(HAVE_LSEEK64)
+ #define Jim_Lseek lseek64
+ #else
+ #define Jim_Lseek lseek
+ #endif
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
@@ -107,6 +113,10 @@ int Jim_OpenForRead(const char *filename);
#endif
#endif
+#ifndef O_TEXT
+#define O_TEXT 0
+#endif
+
/* jim-file.c */
/* Note that this is currently an internal function only.
* It does not form part of the public Jim API