lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I was looking at the Debian LFS bugs and I saw
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345055 there. It seems
like it was filed against lua50 and when that was obsoleted, the bug
(including the attached patch) was quickly forgotten.

When I was looking at our current code, I don’t see the change there. Is
it something which has been taken care for otherwise?

Best,

Matěj
-- 
https://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8

Anger is often what pain looks like when it shows itself in public.
  -- Krista Tippett
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: OpenPGP_0x79205802880BC9D8.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature