X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/5f4d86c1219d56604890d932a3152b3b5dd15b55..34e8f8296870d0e8695f90e1a54240a589d41312:/stdio/FreeBSD/funopen.c.patch diff --git a/stdio/FreeBSD/funopen.c.patch b/stdio/FreeBSD/funopen.c.patch new file mode 100644 index 0000000..5b4045d --- /dev/null +++ b/stdio/FreeBSD/funopen.c.patch @@ -0,0 +1,12 @@ +--- funopen.c.orig 2009-02-15 03:11:22.000000000 -0800 ++++ funopen.c 2009-02-15 14:02:06.000000000 -0800 +@@ -67,7 +67,8 @@ funopen(cookie, readfn, writefn, seekfn, + else + flags = __SRW; /* read-write */ + } +- if ((fp = __sfp()) == NULL) ++ /* funopen in not covered in SUSv3, so never count the streams */ ++ if ((fp = __sfp(0)) == NULL) + return (NULL); + fp->_flags = flags; + fp->_file = -1;