From 02863c078d4e8ccd1b084d35ad141135e906a579 Mon Sep 17 00:00:00 2001 From: Xiangyan Sun Date: Sun, 3 May 2026 18:09:59 -0700 Subject: [PATCH] c/syscalls.c: fix gethostname() prototype --- c/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/syscalls.c b/c/syscalls.c index fe11e81..8e4e9a4 100644 --- a/c/syscalls.c +++ b/c/syscalls.c @@ -669,7 +669,7 @@ s48_ref_t scm_gethostname(s48_call_t call) { char hostname[MAXHOSTNAMELEN+1]; /* different OS's declare differently, so punt the prototype. */ - int gethostname(); + int gethostname(char *name, size_t size); int retval = gethostname(hostname, MAXHOSTNAMELEN); if (retval == -1) s48_os_error_2(call, "scm_gethostname", errno, 0); return s48_enter_byte_string_2(call, hostname);