summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorEuan <euantorano@users.noreply.github.com>2020-03-23 20:39:40 +0000
committerGitHub <noreply@github.com>2020-03-23 21:39:40 +0100
commitc0dbcffca643ac79e0c03c9509e92f5841b38a94 (patch)
tree951c997c6eeb14d1e6babc5be0bf50396d584e90 /lib
parent4fb7f076d89ca52704c78e0c984d41ba9d48ae5b (diff)
downloadNim-c0dbcffca643ac79e0c03c9509e92f5841b38a94.tar.gz
__stderrp and friends are only on FreeBSD & DragonFlyBSD. (#13735)
Diffstat (limited to 'lib')
-rw-r--r--lib/system/ansi_c.nim2
-rw-r--r--lib/system/io.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim
index 1ff15611c..0b4b25992 100644
--- a/lib/system/ansi_c.nim
+++ b/lib/system/ansi_c.nim
@@ -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(bsd)) and not defined(emscripten)
+const stdioUsesMacros = (defined(osx) or defined(freebsd) or defined(dragonfly)) 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"
diff --git a/lib/system/io.nim b/lib/system/io.nim
index 7b9a893bb..98d9347be 100644
--- a/lib/system/io.nim
+++ b/lib/system/io.nim
@@ -39,7 +39,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(bsd)) and not defined(emscripten)
+  const stdioUsesMacros = (defined(osx) or defined(freebsd) or defined(dragonfly)) 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"
ey <dickey@invisible-island.net> 1998-11-10 19:47:00 -0500 committer Thomas E. Dickey <dickey@invisible-island.net> 1998-11-10 19:47:00 -0500 snapshot of project "lynx", label v2-8-2dev_2' href='/ingrix/lynx-snapshots/commit/po/POTFILES.in?id=d3f9d5478df478427c2aa5db4507ddd0a38f0eb6'>d3f9d547 ^
d3f9d547 ^





d3f9d547 ^




d3f9d547 ^


aa7067e1 ^
d3f9d547 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45