Skip to content

Commit

Permalink
freebsd => bsd
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Feb 4, 2020
1 parent f958325 commit 5532eaa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/evalffi.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ when defined(windows):
const libcDll = "msvcrt.dll"
elif defined(linux):
const libcDll = "libc.so(.6|.5|)"
elif defined(freebsd):
elif defined(bsd):
const libcDll = "/lib/libc.so.7"
elif defined(osx):
const libcDll = "/usr/lib/libSystem.dylib"
Expand Down
2 changes: 1 addition & 1 deletion lib/system/ansi_c.nim
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ type
CFilePtr* = ptr CFile ## The type representing a file handle.

# duplicated between io and ansi_c
const stdioUsesMacros = (defined(osx) or defined(freebsd)) and not defined(emscripten)
const stdioUsesMacros = (defined(osx) or defined(bsd)) and not defined(emscripten)
const stderrName = when stdioUsesMacros: "__stderrp" else: "stderr"
const stdoutName = when stdioUsesMacros: "__stdoutp" else: "stdout"
const stdinName = when stdioUsesMacros: "__stdinp" else: "stdin"
Expand Down
2 changes: 1 addition & 1 deletion lib/system/io.nim
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type
# text file handling:
when not defined(nimscript) and not defined(js):
# duplicated between io and ansi_c
const stdioUsesMacros = (defined(osx) or defined(freebsd)) and not defined(emscripten)
const stdioUsesMacros = (defined(osx) or defined(bsd)) and not defined(emscripten)
const stderrName = when stdioUsesMacros: "__stderrp" else: "stderr"
const stdoutName = when stdioUsesMacros: "__stdoutp" else: "stdout"
const stdinName = when stdioUsesMacros: "__stdinp" else: "stdin"
Expand Down
2 changes: 1 addition & 1 deletion tests/vm/mevalffi.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# re-enable for windows once libffi can be installed in koch.nim
# With win32 (not yet win64), libffi on windows works and this test passes.

when defined(linux) or defined(freebsd):
when defined(linux) or defined(bsd):
{.passL: "-lm".} # for exp
proc c_exp(a: float64): float64 {.importc: "exp", header: "<math.h>".}

Expand Down

0 comments on commit 5532eaa

Please sign in to comment.