~ chicken-core (master) aefd2ee82ad115f8bec37944aa39100c03af8f33
commit aefd2ee82ad115f8bec37944aa39100c03af8f33
Author: Mario Domenech Goulart <mario@parenteses.org>
AuthorDate: Thu May 14 15:19:43 2026 +0200
Commit: felix <felix@call-with-current-continuation.org>
CommitDate: Thu May 14 16:05:52 2026 +0200
posixunix.scm: Support flock on OpenIndiana
Similar to c4c968fc, but to support OpenIndiana and hopefully Solaris
variants, which need sys/file.h for the definitions of flock-related
code.
Tested on OpenIndiana Hipster 2026.04.
Signed-off-by: felix <felix@call-with-current-continuation.org>
diff --git a/posixunix.scm b/posixunix.scm
index 0f624648..cd429f23 100644
--- a/posixunix.scm
+++ b/posixunix.scm
@@ -49,7 +49,7 @@ static int C_wait_status;
# include <termios.h>
#endif
-#if defined(__linux__) || defined(__GLIBC__)
+#if defined(__linux__) || defined(__GLIBC__) || (defined(__sun) && defined(__SVR4))
# include <sys/file.h>
#endif
Trap