gcc/libgm2
Gaius Mulley 63fb0bedb8 PR modula2/110779 SysClock can not read the clock (Darwin portability fixes)
This patch adds corrections to defensively check against glibc functions,
structures and contains fallbacks.  These fixes were required under Darwin.

gcc/m2/ChangeLog:

	PR modula2/110779
	* gm2-libs-iso/SysClock.mod (EpochTime): New procedure.
	(GetClock): Call EpochTime if the C time functions are
	unavailable.
	* gm2-libs-iso/wrapclock.def (istimezone): New function
	definition.

libgm2/ChangeLog:

	PR modula2/110779
	* configure: Regenerate.
	* configure.ac: Provide special case test for Darwin cross
	configuration.
	(GLIBCXX_CONFIGURE): New statement.
	(GLIBCXX_CHECK_GETTIMEOFDAY): New statement.
	(GLIBCXX_ENABLE_LIBSTDCXX_TIME): New statement.
	* libm2iso/wrapclock.cc: New sys/time.h conditional include.
	(sys/syscall.h): Conditional include.
	(unistd.h): Conditional include.
	(GetTimeRealtime): Re-implement.
	(SetTimeRealtime): Re-implement.
	(timezone): Re-implement.
	(istimezone): New function.
	(daylight): Re-implement.
	(isdst): Re-implement.
	(tzname): Re-implement.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
2023-08-12 18:17:41 +01:00
..
libm2cor Remove stale Autoconf checks for Perl 2023-06-02 09:51:14 +02:00
libm2iso PR modula2/110779 SysClock can not read the clock (Darwin portability fixes) 2023-08-12 18:17:41 +01:00
libm2log Remove stale Autoconf checks for Perl 2023-06-02 09:51:14 +02:00
libm2min Remove stale Autoconf checks for Perl 2023-06-02 09:51:14 +02:00
libm2pim Remove stale Autoconf checks for Perl 2023-06-02 09:51:14 +02:00
aclocal.m4 PR modula2/109879 WholeIO.ReadCard and ReadInt should consume leading space 2023-05-17 00:18:56 +01:00
ChangeLog Daily bump. 2023-08-10 00:17:26 +00:00
config.h.in PR modula2/110779: libgm2 fix solaris bootstrap check for tm_gmtoff 2023-08-09 09:35:13 +01:00
configure PR modula2/110779 SysClock can not read the clock (Darwin portability fixes) 2023-08-12 18:17:41 +01:00
configure.ac PR modula2/110779 SysClock can not read the clock (Darwin portability fixes) 2023-08-12 18:17:41 +01:00
Makefile.am libgm2: Adjust 'autogen.sh' to 'ACLOCAL_AMFLAGS', and simplify 2023-05-08 15:51:59 +02:00
Makefile.in Remove stale Autoconf checks for Perl 2023-06-02 09:51:14 +02:00