tag 345055 + patch

thanks,

Hi,

The attached patch adds the _FILE_OFFSET_BITS macro as is defined in lua5.2.

This makes the stdio calls to use the O_LARGEFILE flag.

-- 
Se necesitan voluntarios para dominar el mundo.
Saludos /\/\ /\ >< `/
Index: lua50-5.0.3/src/lib/liolib.c
===================================================================
--- lua50-5.0.3.orig/src/lib/liolib.c	2012-11-20 11:18:19.583663839 +0100
+++ lua50-5.0.3/src/lib/liolib.c	2012-11-20 11:19:28.116911228 +0100
@@ -4,6 +4,14 @@
 ** See Copyright Notice in lua.h
 */
 
+/*
+** POSIX idiosyncrasy!
+** This definition must come before the inclusion of 'stdio.h'; it
+** should not affect non-POSIX systems
+*/
+#if !defined(_FILE_OFFSET_BITS)
+#define _FILE_OFFSET_BITS 64
+#endif
 
 #include <errno.h>
 #include <locale.h>

Attachment: signature.asc
Description: Digital signature

Reply via email to