diff options
author | Nicolas Trangez <ikke@nicolast.be> | 2022-09-21 13:49:58 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-10-21 02:58:39 -0400 |
commit | a2af7c4c59ef24a71cc6cab7bd6b07d12f02aad1 (patch) | |
tree | 08e881fc1d61ca41c5f9297cbcb0b2bbb545c181 /rts | |
parent | 8cd6f435e60f9dd14ad55a0002ff833536e9ccb2 (diff) | |
download | haskell-a2af7c4c59ef24a71cc6cab7bd6b07d12f02aad1.tar.gz |
build: get rid of `HAVE_TIME_H`
As advertized by `autoreconf`:
> All current systems provide time.h; it need not be checked for.
Hence, remove the check for it in `configure.ac` and remove conditional
inclusion of the header in `HAVE_TIME_H` blocks where applicable.
The `time.h` header was being included in various source files without a
`HAVE_TIME_H` guard already anyway.
Diffstat (limited to 'rts')
-rw-r--r-- | rts/RtsUtils.c | 2 | ||||
-rw-r--r-- | rts/posix/Clock.h | 4 | ||||
-rw-r--r-- | rts/win32/GetTime.c | 4 |
3 files changed, 2 insertions, 8 deletions
diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c index 3878a40697..2017884e48 100644 --- a/rts/RtsUtils.c +++ b/rts/RtsUtils.c @@ -15,9 +15,7 @@ #include "Schedule.h" #include "RtsFlags.h" -#if defined(HAVE_TIME_H) #include <time.h> -#endif /* HACK: On Mac OS X 10.4 (at least), time.h doesn't declare ctime_r with * _POSIX_C_SOURCE. If this is the case, we declare it ourselves. diff --git a/rts/posix/Clock.h b/rts/posix/Clock.h index 92d0581877..2476454c3e 100644 --- a/rts/posix/Clock.h +++ b/rts/posix/Clock.h @@ -12,9 +12,7 @@ # include <unistd.h> #endif -#if defined(HAVE_TIME_H) -# include <time.h> -#endif +#include <time.h> #if defined(HAVE_SYS_TIME_H) # include <sys/time.h> diff --git a/rts/win32/GetTime.c b/rts/win32/GetTime.c index e0f5e7d406..1722e14f8f 100644 --- a/rts/win32/GetTime.c +++ b/rts/win32/GetTime.c @@ -11,9 +11,7 @@ #include <windows.h> -#if defined(HAVE_TIME_H) -# include <time.h> -#endif +#include <time.h> /* Convert FILETIMEs into secs */ |