Support IOFBF and IONBF on all systems

This commit is contained in:
def 2016-03-06 22:09:27 +01:00
commit 5a06c2260d

View file

@ -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