shithub: sl

Download patch

ref: 1c3422ef1d4b994ba5e156f6dba79df07dd88995
parent: 9f3405cd99f71e3723074b9c7673ad6aaaedbd0f
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sat Jan 25 12:44:10 EST 2025

set *os-name* correctly on Haiku

--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
 
 Tested on: 9front/arm64, OpenBSD/386, NetBSD/sparc64, Alpine/amd64, Android/arm64.
 
-Also runs on: MacOS 4.x-9.x, Mac OS X, DOS.
+Also runs on: MacOS 4.x-9.x, Mac OS X, Haiku, DOS.
 
 Some of the changes from the original include:
 
--- a/posix/platform.h
+++ b/posix/platform.h
@@ -43,6 +43,8 @@
 #define __os_name__ "dragonflybsd"
 #elif defined(__APPLE__)
 #define __os_name__ "macosx"
+#elif defined(__HAIKU__)
+#define __os_name__ "haiku"
 #else
 #define __os_name__ "unknown"
 #endif