X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff:/stdio/FreeBSD/findfp.c.patch diff --git a/stdio/FreeBSD/findfp.c.patch b/stdio/FreeBSD/findfp.c.patch index f3ec96d..3453536 100644 --- a/stdio/FreeBSD/findfp.c.patch +++ b/stdio/FreeBSD/findfp.c.patch @@ -1,5 +1,5 @@ ---- findfp.c.orig Wed Dec 10 13:02:27 2003 -+++ findfp.c Wed Dec 10 13:04:25 2003 +--- /Volumes/XDisk/tmp/Libc/stdio/FreeBSD/findfp.c.orig 2004-05-22 08:19:41.000000000 -0700 ++++ /Volumes/XDisk/tmp/Libc/stdio/FreeBSD/findfp.c 2004-10-24 17:08:30.000000000 -0700 @@ -47,6 +47,7 @@ #include #include @@ -38,5 +38,5 @@ /* fp->_lock = NULL; */ /* once set always set (reused) */ + fp->_extra->fl_mutex = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER; fp->_extra->orientation = 0; - #ifdef notdef - /* Stateful encoding/decoding is not yet supported. */ + memset(&fp->_extra->mbstate, 0, sizeof(mbstate_t)); + return (fp);