Explorar el Código

Workaround for missing fseeko/ftello prototypes on ancient glibc.

Mike Pall hace 15 años
padre
commit
5beedd6ef8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Makefile

+ 1 - 1
src/Makefile

@@ -169,7 +169,7 @@ TARGET_DLLNAME= lua$(NODOTABIVER).dll
 TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
 TARGET_DYNXLDOPTS=
 
-TARGET_XCFLAGS= -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE
+TARGET_XCFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U_FORTIFY_SOURCE
 TARGET_XLDFLAGS=
 TARGET_XLIBS= -lm
 TARGET_ACFLAGS= $(CCOPTIONS) $(TARGET_XCFLAGS) $(TARGET_ARCH) $(TARGET_CFLAGS)