gcc/libgm2
Gaius Mulley d1a1f7e9f0 PR modula2/115276 bugfix libgm2 wraptime.InitTM returns NIL
This patch fixes libgm2/libm2iso/wraptime.cc:InitTM so that
it does not always return NULL.  The incorrect autoconf macro
was used (inside InitTM) and the function short circuited
to return NULL.  The fix is to use HAVE_SYS_TIME_H and use
AC_HEADER_TIME in libgm2/configure.ac.

libgm2/ChangeLog:

	PR modula2/115276
	* config.h.in: Regenerate.
	* configure: Regenerate.
	* configure.ac: Use AC_HEADER_TIME.
	* libm2iso/wraptime.cc (InitTM): Check HAVE_SYS_TIME_H
	before using struct tm to obtain the size.

gcc/testsuite/ChangeLog:

	PR modula2/115276
	* gm2/isolib/run/pass/testinittm.mod: New test.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
2024-05-29 17:26:59 +01:00
..
libm2cor modula2: Regenerate libgm2 Makefile.ins using correct include order 2024-05-02 14:38:51 +01:00
libm2iso PR modula2/115276 bugfix libgm2 wraptime.InitTM returns NIL 2024-05-29 17:26:59 +01:00
libm2log modula2: Regenerate libgm2 Makefile.ins using correct include order 2024-05-02 14:38:51 +01:00
libm2min modula2: Regenerate libgm2 Makefile.ins using correct include order 2024-05-02 14:38:51 +01:00
libm2pim modula2: Regenerate libgm2 Makefile.ins using correct include order 2024-05-02 14:38:51 +01:00
acinclude.m4
aclocal.m4 modula2: Regenerate libgm2 Makefile.ins using correct include order 2024-05-02 14:38:51 +01:00
ChangeLog Daily bump. 2024-05-03 00:17:26 +00:00
config.h.in PR modula2/115276 bugfix libgm2 wraptime.InitTM returns NIL 2024-05-29 17:26:59 +01:00
configure PR modula2/115276 bugfix libgm2 wraptime.InitTM returns NIL 2024-05-29 17:26:59 +01:00
configure.ac PR modula2/115276 bugfix libgm2 wraptime.InitTM returns NIL 2024-05-29 17:26:59 +01:00
configure.host Fix up duplicated words mostly in comments, part 1 2024-04-02 13:39:11 +02:00
Makefile.am
Makefile.in modula2: Regenerate libgm2 Makefile.ins using correct include order 2024-05-02 14:38:51 +01:00