Răsfoiți Sursa

New compile option LUA_USE_OFF_T

Allows non-Posix systems to use off_t and related functions for
file offsets.
Roberto Ierusalimschy 5 luni în urmă
părinte
comite
9a3940380a
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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(l_fseek)		/* { */
 
 
-#if defined(LUA_USE_POSIX)	/* { */
+#if defined(LUA_USE_POSIX) || defined(LUA_USE_OFF_T)	/* { */
 
 
 #include <sys/types.h>
 #include <sys/types.h>