1diff -ur texinfo-4.11-orig/system.h texinfo-4.11/system.h 2--- texinfo-4.11-orig/system.h 2007-07-01 21:20:28.000000000 +0000 3+++ texinfo-4.11/system.h 2008-03-24 01:02:31.000000000 +0000 4@@ -154,7 +154,7 @@ 5 # define va_end(args) 6 #endif 7 8-#if O_BINARY 9+#if O_BINARY && !defined(__BEOS__) 10 # ifdef HAVE_IO_H 11 # include <io.h> 12 # endif 13