---- 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 <stdlib.h>
#include <string.h>
/* 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);