build: fix unsigned time_t detection for cmake, MS-DOS, AmigaOS

- cmake: add auto-detection. Sync this with autotools.
- enable for MS-DOS and AmigaOS builds.
  (auto-detection doesn't work for cross-builds.)
- tidy up detection snippet.
- fix comment.

Closes #15868
This commit is contained in:
Viktor Szakats 2024-12-30 20:57:41 +01:00
parent f60f872bcd
commit 10fe952da0
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
4 changed files with 41 additions and 18 deletions

View file

@ -622,6 +622,9 @@
/* Define this symbol if your OS supports changing the contents of argv */
#cmakedefine HAVE_WRITABLE_ARGV 1
/* Define this if time_t is unsigned */
#cmakedefine HAVE_TIME_T_UNSIGNED 1
/* Define to 1 if _REENTRANT preprocessor symbol must be defined. */
#cmakedefine NEED_REENTRANT 1