From 48c73bb9bc8b7026a6f02a6e89230118ccc52826 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Tue, 1 Feb 2011 23:28:08 +0000 Subject: [PATCH] Updated patch for m4, but it's still not building cleanly --- sys-devel/m4/patches/m4-1.4.15.patch | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/sys-devel/m4/patches/m4-1.4.15.patch b/sys-devel/m4/patches/m4-1.4.15.patch index dc0cf9c76..4e51ae7f2 100644 --- a/sys-devel/m4/patches/m4-1.4.15.patch +++ b/sys-devel/m4/patches/m4-1.4.15.patch @@ -1,3 +1,41 @@ +diff -urN m4-1.4.15/lib/binary-io.h m4-1.4.15-haiku/lib/binary-io.h +--- m4-1.4.15/lib/binary-io.h 2010-02-06 21:15:26.051118080 +0000 ++++ m4-1.4.15-haiku/lib/binary-io.h 2011-01-26 11:15:38.000000000 +0000 +@@ -19,24 +19,13 @@ + #define _BINARY_H + + /* For systems that distinguish between text and binary I/O. +- O_BINARY is usually declared in . */ ++ O_BINARY is guaranteed by the gnulib . */ + #include + + /* The MSVC7 doesn't like to be included after '#define fileno ...', + so we include it here first. */ + #include + +-#if !defined O_BINARY && defined _O_BINARY +- /* For MSC-compatible compilers. */ +-# define O_BINARY _O_BINARY +-# define O_TEXT _O_TEXT +-#endif +-#if defined __BEOS__ || defined __HAIKU__ +- /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */ +-# undef O_BINARY +-# undef O_TEXT +-#endif +- + /* SET_BINARY (fd); + changes the file descriptor fd to perform binary I/O. */ + #if O_BINARY +@@ -58,8 +47,6 @@ + # endif + #else + /* On reasonable systems, binary I/O is the default. */ +-# undef O_BINARY +-# define O_BINARY 0 + # define SET_BINARY(fd) /* do nothing */ ((void) 0) + #endif + diff -urN m4-1.4.15/lib/pipe2.c m4-1.4.15-haiku/lib/pipe2.c --- m4-1.4.15/lib/pipe2.c 2010-03-08 21:47:53.064225280 +0000 +++ m4-1.4.15-haiku/lib/pipe2.c 2010-09-24 04:13:33.514064384 +0000