From 07bd5089ec502a4aab1e2cfd381ba8a7d86d22c8 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Sun, 9 May 2021 19:27:33 +0200
Subject: [PATCH] Define CLOCKS_PER_SEC as _clocks_per_sec() if
_clocks_per_sec() is actually available.
There are programs checking for the existence of CLOCKS_PER_SEC before usage. We don't want to mislead them.
---
include/time.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/time.h b/include/time.h
index 49d7e6870..92cbeee37 100644
--- a/include/time.h
+++ b/include/time.h
@@ -98,11 +98,11 @@ extern struct _timezone {
# define CLOCKS_PER_SEC 50
#elif defined(__PCE__)
# define CLOCKS_PER_SEC 60
-#elif defined(__GAMATE__)
+#elif defined(__GAMATE__)
# define CLOCKS_PER_SEC 135 /* FIXME */
-#elif defined(__GEOS__)
+#elif defined(__GEOS__)
# define CLOCKS_PER_SEC 1
-#else
+#elif defined(__ATARI__) || defined (__LYNX__)
/* Read the clock rate at runtime */
clock_t _clocks_per_sec (void);
# define CLOCKS_PER_SEC _clocks_per_sec()