From 5a06c2260ddb6ac614f3c62f44013965d9738a66 Mon Sep 17 00:00:00 2001 From: def Date: Sun, 6 Mar 2016 22:09:27 +0100 Subject: [PATCH] Support IOFBF and IONBF on all systems --- lib/system/sysio.nim | 5 ++--- 1 file 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