Loading...
--- Libc/Libc-763.13/stdio/FreeBSD/wbuf.c.patch
+++ Libc/Libc-320.1.3/stdio/FreeBSD/wbuf.c.patch
@@ -1,19 +1,19 @@
---- wbuf.c.bsdnew 2009-11-11 13:33:20.000000000 -0800
-+++ wbuf.c 2009-11-11 13:33:22.000000000 -0800
-@@ -37,6 +37,7 @@ static char sccsid[] = "@(#)wbuf.c 8.1 (
- __FBSDID("$FreeBSD: src/lib/libc/stdio/wbuf.c,v 1.12 2007/01/09 00:28:08 imp Exp $");
+--- wbuf.c.orig Mon Mar 22 13:35:00 2004
++++ wbuf.c Mon Mar 22 13:38:02 2004
+@@ -41,6 +41,7 @@
+ __FBSDID("$FreeBSD: src/lib/libc/stdio/wbuf.c,v 1.10 2002/08/13 09:30:41 tjr Exp $");
#include <stdio.h>
+#include <errno.h>
#include "local.h"
/*
-@@ -61,8 +62,10 @@ __swbuf(c, fp)
+@@ -65,8 +66,10 @@
* calls might wrap _w from negative to positive.
*/
fp->_w = fp->_lbfsize;
-- if (prepwrite(fp) != 0)
-+ if (prepwrite(fp) != 0) {
+- if (cantwrite(fp))
++ if (cantwrite(fp)) {
+ errno = EBADF;
return (EOF);
+ }