diff options
-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 |