From c7aa19f10405b6052c2dcfa8490dea2f2284f3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Fri, 15 Mar 2024 23:46:07 +0100 Subject: [PATCH] paths.nim: Fix import for FreeBSD (#238) --- src/nimib/paths.nim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nimib/paths.nim b/src/nimib/paths.nim index c8b7fdd5..d7f9c11f 100644 --- a/src/nimib/paths.nim +++ b/src/nimib/paths.nim @@ -1,4 +1,7 @@ -import "$nim/compiler/pathutils" +when defined(FreeBSD): + import "$nim/lib/compiler/pathutils" +else: + import "$nim/compiler/pathutils" export pathutils import os, strutils, hashes @@ -53,4 +56,4 @@ template withDir*(dir: AbsoluteDir, body: untyped): untyped = proc getExt*(filename: string): string = let i = filename.searchExtPos if i > 0 and filename.len > i: - result = filename[(i+1) .. ^1] \ No newline at end of file + result = filename[(i+1) .. ^1]