New compile option LUA_USE_OFF_T

Allows non-Posix systems to use off_t and related functions for
file offsets.
This commit is contained in:
Roberto Ierusalimschy 2025-08-26 12:30:34 -03:00
parent 711890624f
commit 9a3940380a

View File

@ -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>