Commit 4ad2ec6f authored by Julian Scheel's avatar Julian Scheel Committed by Rémi Denis-Courmont

newlib/nacl: Provide flockfile implementation

newlib provides an flockfile implementation via sys/io.h, which is
marked as internal. As we do not have a better alternative make use of
it here, albeit being marked as internal.
Signed-off-by: Julian Scheel's avatarJulian Scheel <>
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <>
parent 02bf8ff2
......@@ -55,6 +55,16 @@ int putc_unlocked (int c, FILE *stream)
return _putc_nolock (c, stream);
#elif defined __native_client__
void flockfile (FILE *stream)
void funlockfile (FILE *stream)
# error flockfile not implemented on your platform!
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment