1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-06 08:24:44 +00:00

Remove flags for LINUX, OPENBSD, FREEBSD, MACOSX from build system. (#261)

We now can handle these via `inc/maiko/platform.h` and the
constants defined there.

This doesn't change `OS5` for Solaris yet as that's a much wider
set of changes.
This commit is contained in:
Bruce Mitchener
2021-01-21 14:38:15 +07:00
committed by GitHub
parent 164b5651b7
commit 979c3ad6be
13 changed files with 14 additions and 27 deletions

View File

@@ -250,7 +250,7 @@ static int gettime(int casep)
/* Unfortunately, FreeBSD does not support the timezone external variable, nor */
/* does gettimeofday() seem to produce the correct timezone values. */
tzset();
#if defined(FREEBSD)
#if defined(MAIKO_OS_FREEBSD)
time_t tv = time(NULL);
struct tm *tm = localtime(&tv);
return (tm->tm_gmtoff / -3600);

View File

@@ -54,7 +54,7 @@ extern int Win_security_p;
#include <stropts.h>
#endif /* OS5 */
#if defined(FREEBSD) || defined(MACOSX) || defined(OS5)
#if defined(MAIKO_OS_FREEBSD) || defined(MAIKO_OS_MACOS) || defined(OS5)
/* vfork is deprecated */
#define vfork fork
#endif

View File

@@ -227,7 +227,7 @@ LispPTR unix_getparm(LispPTR *args) {
envvalue = "i386";
#elif defined(DOS)
envvalue = "386";
#elif defined(MACOSX)
#elif defined(MAIKO_OS_MACOS)
envvalue = "i386";
#else
envvalue = "mc68020";
@@ -240,7 +240,7 @@ LispPTR unix_getparm(LispPTR *args) {
envvalue = "sun386";
#elif defined(DOS)
envvalue = "dos";
#elif defined(MACOSX)
#elif defined(MAIKO_OS_MACOS)
envvalue = "i386";
#else
envvalue = "sun3";