[MacPorts] #69283: lua @5.3.6_3 does not build on PPC Tiger, Mac OS X 10.4.11, because gmtime_r' and 'localtime_r' were not declared in this scope
MacPorts
noreply at macports.org
Mon Feb 5 12:40:39 UTC 2024
#69283: lua @5.3.6_3 does not build on PPC Tiger, Mac OS X 10.4.11, because
gmtime_r' and 'localtime_r' were not declared in this scope
------------------------+-----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: | Keywords: ppc tiger
Port: lua |
------------------------+-----------------------
Comment (by ballapete):
The C source file has:
{{{
1 /*
2 ** $Id: loslib.c,v 1.65.1.1 2017/04/19 17:29:57 roberto Exp $
3 ** Standard Operating System library
4 ** See Copyright Notice in lua.h
5 */
6
7 #define loslib_c
8 #define LUA_LIB
9
10 #include "lprefix.h"
11
12
13 #include <errno.h>
14 #include <locale.h>
15 #include <stdlib.h>
16 #include <string.h>
17 #include <time.h>
18
19 #include "lua.h"
20
21 #include "lauxlib.h"
22 #include "lualib.h"
23
}}}
so that it should become this?
{{{
1 /*
2 ** $Id: loslib.c,v 1.65.1.1 2017/04/19 17:29:57 roberto Exp $
3 ** Standard Operating System library
4 ** See Copyright Notice in lua.h
5 */
6
7 #define loslib_c
8 #define LUA_LIB
9
10 #include "lprefix.h"
11
12
13 #include <errno.h>
14 #include <locale.h>
15 #include <stdlib.h>
16 #include <string.h>
#undef _POSIX_C_SOURCE
17 #include <time.h>
#define _POSIX_C_SOURCE 200112L
18
19 #include "lua.h"
20
21 #include "lauxlib.h"
22 #include "lualib.h"
23
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69283#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list