remove another invalid skip of locking in ungetwc
[oweals/musl.git] / src / stdio / fgetwc.c
index 5e420594da00dbf9bce0105508f6f3ef11487f08..8626d54caa5dba9a5513da8ffaf180652443bf12 100644 (file)
@@ -1,4 +1,6 @@
 #include "stdio_impl.h"
+#include <wchar.h>
+#include <errno.h>
 
 wint_t __fgetwc_unlocked(FILE *f)
 {
@@ -34,7 +36,6 @@ wint_t __fgetwc_unlocked(FILE *f)
                if (l == -1) return WEOF;
        }
 
-       FUNLOCK(f);
        return wc;
 }