Work around fileno() being a macro on *BSD.