aboutsummaryrefslogtreecommitdiff
path: root/jimiocompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'jimiocompat.h')
-rw-r--r--jimiocompat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/jimiocompat.h b/jimiocompat.h
index 64dc4c1..32db56e 100644
--- a/jimiocompat.h
+++ b/jimiocompat.h
@@ -70,6 +70,9 @@ int Jim_OpenForRead(const char *filename);
#define Jim_FileStat _fstat64
#define Jim_Lseek _lseeki64
#define O_TEXT _O_TEXT
+ #ifndef STDIN_FILENO
+ #define STDIN_FILENO 0
+ #endif
#else
#if defined(HAVE_STAT64)