diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-11 11:46:19 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-11 11:46:19 -0300 |
| commit | 626124d2d8ae582c3444a9e0e11b09f31dc098ff (patch) | |
| tree | 38973546aa69663cdb41861616d97028073fd021 | |
| parent | 5018104a60671d7b37bf1fc64c70b73753d76c65 (diff) | |
| download | lua-626124d2d8ae582c3444a9e0e11b09f31dc098ff.tar.gz lua-626124d2d8ae582c3444a9e0e11b09f31dc098ff.tar.bz2 lua-626124d2d8ae582c3444a9e0e11b09f31dc098ff.zip | |
old POSIX systems need '<sys/types.h>' for 'off_t'
| -rw-r--r-- | liolib.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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 |
