X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/51631861ddb16afcfcf748cee26c14481549065e..c957a83bde4df2e2d3d1ed0963656856b48ef0a0:/stdio/FreeBSD/wbuf.c.patch diff --git a/stdio/FreeBSD/wbuf.c.patch b/stdio/FreeBSD/wbuf.c.patch index 8f1aa70..3d8a4ce 100644 --- a/stdio/FreeBSD/wbuf.c.patch +++ b/stdio/FreeBSD/wbuf.c.patch @@ -1,7 +1,7 @@ ---- wbuf.c.orig Mon Mar 22 13:35:00 2004 -+++ wbuf.c Mon Mar 22 13:38:02 2004 +--- wbuf.c.orig 2004-06-07 22:45:32.000000000 -0700 ++++ wbuf.c 2004-10-25 00:49:10.000000000 -0700 @@ -41,6 +41,7 @@ - __FBSDID("$FreeBSD: src/lib/libc/stdio/wbuf.c,v 1.10 2002/08/13 09:30:41 tjr Exp $"); + __FBSDID("$FreeBSD: src/lib/libc/stdio/wbuf.c,v 1.11 2004/06/08 05:45:32 das Exp $"); #include +#include @@ -12,8 +12,8 @@ * calls might wrap _w from negative to positive. */ fp->_w = fp->_lbfsize; -- if (cantwrite(fp)) -+ if (cantwrite(fp)) { +- if (prepwrite(fp) != 0) ++ if (prepwrite(fp) != 0) { + errno = EBADF; return (EOF); + }