aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-05-11 11:46:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-05-11 11:46:19 -0300
commit626124d2d8ae582c3444a9e0e11b09f31dc098ff (patch)
tree38973546aa69663cdb41861616d97028073fd021 /liolib.c
parent5018104a60671d7b37bf1fc64c70b73753d76c65 (diff)
downloadlua-626124d2d8ae582c3444a9e0e11b09f31dc098ff.tar.gz
lua-626124d2d8ae582c3444a9e0e11b09f31dc098ff.tar.bz2
lua-626124d2d8ae582c3444a9e0e11b09f31dc098ff.zip
old POSIX systems need '<sys/types.h>' for 'off_t'
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/liolib.c b/liolib.c
index 6ce0ad43..41fa8555 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.120 2014/03/19 18:57:42 roberto Exp roberto $ 2** $Id: liolib.c,v 2.121 2014/04/15 16:46:45 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -104,6 +104,8 @@
104 104
105#if defined(LUA_USE_POSIX) /* { */ 105#if defined(LUA_USE_POSIX) /* { */
106 106
107#include <sys/types.h>
108
107#define l_fseek(f,o,w) fseeko(f,o,w) 109#define l_fseek(f,o,w) fseeko(f,o,w)
108#define l_ftell(f) ftello(f) 110#define l_ftell(f) ftello(f)
109#define l_seeknum off_t 111#define l_seeknum off_t