浏览代码

old POSIX systems need '<sys/types.h>' for 'off_t'

Roberto Ierusalimschy 11 年之前
父节点
当前提交
626124d2d8
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      liolib.c

+ 3 - 1
liolib.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: liolib.c,v 2.120 2014/03/19 18:57:42 roberto Exp roberto $
+** $Id: liolib.c,v 2.121 2014/04/15 16:46:45 roberto Exp roberto $
 ** Standard I/O (and system) library
 ** Standard I/O (and system) library
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -104,6 +104,8 @@
 
 
 #if defined(LUA_USE_POSIX)	/* { */
 #if defined(LUA_USE_POSIX)	/* { */
 
 
+#include <sys/types.h>
+
 #define l_fseek(f,o,w)		fseeko(f,o,w)
 #define l_fseek(f,o,w)		fseeko(f,o,w)
 #define l_ftell(f)		ftello(f)
 #define l_ftell(f)		ftello(f)
 #define l_seeknum		off_t
 #define l_seeknum		off_t