Browse Source

New compile option LUA_USE_OFF_T

Allows non-Posix systems to use off_t and related functions for
file offsets.
Roberto Ierusalimschy 1 week ago
parent
commit
9a3940380a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      liolib.c

+ 1 - 1
liolib.c

@@ -114,7 +114,7 @@ static int l_checkmode (const char *mode) {
 
 #if !defined(l_fseek)		/* { */
 
-#if defined(LUA_USE_POSIX)	/* { */
+#if defined(LUA_USE_POSIX) || defined(LUA_USE_OFF_T)	/* { */
 
 #include <sys/types.h>