diff options
author | bptato <nincsnevem662@gmail.com> | 2024-09-26 17:54:20 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-09-26 17:54:20 +0200 |
commit | e289dd0d37750e1f3f5d6386b87c4e2451167277 (patch) | |
tree | 3f3a0f3b00a3d0e7d56c02dbd78489c05de4892b /src/loader | |
parent | 9d5a9b167c5ef302c36e4e08090ce862f22a59fb (diff) | |
download | chawan-e289dd0d37750e1f3f5d6386b87c4e2451167277.tar.gz |
Fixes for FreeBSD
Diffstat (limited to 'src/loader')
-rw-r--r-- | src/loader/loaderiface.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/loaderiface.nim b/src/loader/loaderiface.nim index 51f02480..772d9b32 100644 --- a/src/loader/loaderiface.nim +++ b/src/loader/loaderiface.nim @@ -447,6 +447,6 @@ when defined(freebsd): proc setSocketDir*(loader: FileLoader; path: string) = loader.sockDir = path when defined(freebsd): - loader.sockDirFd = open(cstring(path), O_DIRECTORY) + loader.sockDirFd = int(newPosixStream(path, O_DIRECTORY, 0).fd) else: loader.sockDirFd = -1 |