diff options
author | def <dennis@felsin9.de> | 2016-03-06 22:09:27 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2016-03-06 22:09:27 +0100 |
commit | 5a06c2260ddb6ac614f3c62f44013965d9738a66 (patch) | |
tree | f41cbcbbe3b95f584150df9bb3d28d592b71e10c /lib/system/sysio.nim | |
parent | e4e8ebd4a50bc86b0b08df449d5ff72e365a4c6a (diff) | |
download | Nim-5a06c2260ddb6ac614f3c62f44013965d9738a66.tar.gz |
Support IOFBF and IONBF on all systems
Diffstat (limited to 'lib/system/sysio.nim')
-rw-r--r-- | lib/system/sysio.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index e81219a70..78c7b1ca1 100644 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -82,12 +82,11 @@ when NoFakeVars: const IOFBF = cint(0) IONBF = cint(4) - elif defined(macosx) or defined(linux): + else: + # On all systems I could find, including Linux, Mac OS X, and the BSDs const IOFBF = cint(0) IONBF = cint(2) - else: - {.error: "IOFBF not ported to your platform".} else: var IOFBF {.importc: "_IOFBF", nodecl.}: cint |