hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 551ab386e35f64457e8ca0c669b68f1c429d3545
parent fa62f834af4add2b1431f15bf68888d3f278bb9c
Author: Lorenz (xha) <me@xha.li>
Date:   Sun, 24 Mar 2024 12:23:50 +0100

mime: make SYSTEM_DB platform-dependent (fix openbsd)

Signed-off-by: Lorenz (xha) <me@xha.li>

Diffstat:
Amime/+freebsd.ha | 2++
Amime/+linux.ha | 2++
Amime/+openbsd.ha | 2++
Mmime/system.ha | 3---
4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/mime/+freebsd.ha b/mime/+freebsd.ha @@ -0,0 +1,2 @@ +// Path to the system MIME database. +export def SYSTEM_DB: str = "/etc/mime.types"; diff --git a/mime/+linux.ha b/mime/+linux.ha @@ -0,0 +1,2 @@ +// Path to the system MIME database. +export def SYSTEM_DB: str = "/etc/mime.types"; diff --git a/mime/+openbsd.ha b/mime/+openbsd.ha @@ -0,0 +1,2 @@ +// Path to the system MIME database. +export def SYSTEM_DB: str = "/usr/share/misc/mime.types"; diff --git a/mime/system.ha b/mime/system.ha @@ -9,9 +9,6 @@ use io; use os; use strings; -// Path to the system MIME database. -export def SYSTEM_DB: str = "/etc/mime.types"; - @init fn init() void = { // Done in a separate function so we can discard errors here load_systemdb(): void;