$OpenBSD: patch-src_utils_file_cpp,v 1.2 2021/02/27 12:03:43 jasper Exp $

Don't use the CPP define for fileno in stdio.h
It causes clang++ to blow up.

Index: src/utils/file.cpp
--- src/utils/file.cpp.orig
+++ src/utils/file.cpp
@@ -46,6 +46,7 @@ file_ptr::operator int() {
   return static_cast<const file_ptr&>(*this);
 }
 file_ptr::operator int() const {
+#undef fileno
   return fileno(*this);
 }
 
