aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2025-04-17 20:34:59 +0200
committerDanielGavin <danielgavin5@hotmail.com>2025-04-17 20:34:59 +0200
commit8085798c21fd25fe866c75aa9d11bf379dced862 (patch)
tree12264a6469743cb65e73d0024f6f022468ff80e1 /src
parent0ebf26978711598c8261dbdbaab98591483e8ac9 (diff)
parent890154d3811c1e44dc0e75d24ea902c8910a71f7 (diff)
Merge branch 'master' of https://github.com/DanielGavin/ols
Diffstat (limited to 'src')
-rw-r--r--src/common/util.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.odin b/src/common/util.odin
index 10845c4..c702651 100644
--- a/src/common/util.odin
+++ b/src/common/util.odin
@@ -72,8 +72,8 @@ resolve_home_dir :: proc(
}
}
-when ODIN_OS == .Darwin || ODIN_OS == .Linux || ODIN_OS == .NetBSD {
FILE :: struct {}
+when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .Linux || ODIN_OS == .NetBSD {
run_executable :: proc(command: string, stdout: ^[]byte) -> (u32, bool, []byte) {
fp := popen(strings.clone_to_cstring(command, context.temp_allocator), "r")