mirror of
https://github.com/Interlisp/maiko.git
synced 2026-03-01 17:35:54 +00:00
Haiku OS port (#485)
* Haiku OS port * haiku with X11 backend * haiku has stpncpy * Haiku is not Linux. * X not stable enough on Haiku * Haiku : settimeofday is a no-op * Haiku : no need to define settimeofday at all (pointed by nbriggs) --------- Signed-off-by: Anarchos <sylvain_kerjean@hotmail.com>
This commit is contained in:
@@ -231,10 +231,13 @@ LispPTR unix_getparm(LispPTR *args) {
|
||||
struct passwd *pwd;
|
||||
if ((pwd = getpwuid(getuid())) == NULL) return NIL;
|
||||
envvalue = pwd->pw_gecos;
|
||||
} else if (strcmp(envname, "HOSTID") == 0) {
|
||||
}
|
||||
#ifndef MAIKO_OS_HAIKU
|
||||
else if (strcmp(envname, "HOSTID") == 0) {
|
||||
snprintf(result, sizeof(result), "%lx", gethostid());
|
||||
envvalue = result;
|
||||
}
|
||||
#endif /* MAIKO_OS_HAIKU */
|
||||
#endif /* DOS */
|
||||
else
|
||||
return NIL;
|
||||
|
||||
Reference in New Issue
Block a user