summaryrefslogtreecommitdiff
path: root/libgm2/config.h.in
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2023-08-05 17:35:12 +0100
committerGaius Mulley <gaiusmod2@gmail.com>2023-08-05 17:35:12 +0100
commit0826ebd633e38bd55abd161c15deb431420f82a3 (patch)
treec21e03c3a4b5bf1693305dc4b7f0d00ae0463d07 /libgm2/config.h.in
parent39f413fc4b6979d194f2f736bd663eb7f5045168 (diff)
PR modula2/110779 SysClock can not read the clock
This patch completes the implementation of the ISO module SysClock.mod. Three new testcases are provided. wrapclock.{cc,def} are new support files providing access to clock_settime, clock_gettime and glibc timezone variables. gcc/m2/ChangeLog: PR modula2/110779 * gm2-libs-iso/SysClock.mod: Re-implement using wrapclock. * gm2-libs-iso/wrapclock.def: New file. libgm2/ChangeLog: PR modula2/110779 * config.h.in: Regenerate. * configure: Regenerate. * configure.ac (GM2_CHECK_LIB): Check for clock_gettime and clock_settime. * libm2iso/Makefile.am (M2DEFS): Add wrapclock.def. * libm2iso/Makefile.in: Regenerate. * libm2iso/wraptime.cc: Replace HAVE_TIMEVAL with HAVE_STRUCT_TIMEVAL. * libm2iso/wrapclock.cc: New file. gcc/testsuite/ChangeLog: PR modula2/110779 * gm2/iso/run/pass/m2date.mod: New test. * gm2/iso/run/pass/testclock.mod: New test. * gm2/iso/run/pass/testclock2.mod: New test. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'libgm2/config.h.in')
-rw-r--r--libgm2/config.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgm2/config.h.in b/libgm2/config.h.in
index 443008ebe75..8372055a47a 100644
--- a/libgm2/config.h.in
+++ b/libgm2/config.h.in
@@ -9,6 +9,12 @@
/* function cfmakeraw exists */
#undef HAVE_CFMAKERAW
+/* function clock_gettime exists */
+#undef HAVE_CLOCK_GETTIME
+
+/* function clock_settime exists */
+#undef HAVE_CLOCK_SETTIME
+
/* function close exists */
#undef HAVE_CLOSE
@@ -180,6 +186,9 @@
/* Define to 1 if the system has the type `struct stat'. */
#undef HAVE_STRUCT_STAT
+/* Define to 1 if the system has the type `struct timespec'. */
+#undef HAVE_STRUCT_TIMESPEC
+
/* Define to 1 if the system has the type `struct timeval'. */
#undef HAVE_STRUCT_TIMEVAL