about summary refs log tree commit diff
path: root/src/stdio/ftrylockfile.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-08 17:04:20 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-08 17:04:20 -0500
commitefd4d87aa472523b07889af69874259db43b3c3c (patch)
tree40138f27a9f1f0bc462084aec8a9e24e3be42c56 /src/stdio/ftrylockfile.c
parent835f9f950e2f6059532bd9ab9857a856ed21a4fd (diff)
downloadmusl-efd4d87aa472523b07889af69874259db43b3c3c.tar.gz
musl-efd4d87aa472523b07889af69874259db43b3c3c.tar.xz
musl-efd4d87aa472523b07889af69874259db43b3c3c.zip
clean up sloppy nested inclusion from pthread_impl.h
this mirrors the stdio_impl.h cleanup. one header which is not
strictly needed, errno.h, is left in pthread_impl.h, because since
pthread functions return their error codes rather than using errno,
nearly every single pthread function needs the errno constants.

in a few places, rather than bringing in string.h to use memset, the
memset was replaced by direct assignment. this seems to generate much
better code anyway, and makes many functions which were previously
non-leaf functions into leaf functions (possibly eliminating a great
deal of bloat on some platforms where non-leaf functions require ugly
prologue and/or epilogue).
Diffstat (limited to 'src/stdio/ftrylockfile.c')
-rw-r--r--src/stdio/ftrylockfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/ftrylockfile.c b/src/stdio/ftrylockfile.c
index 725c4c3e..eef4e250 100644
--- a/src/stdio/ftrylockfile.c
+++ b/src/stdio/ftrylockfile.c
@@ -1,5 +1,6 @@
 #include "stdio_impl.h"
 #include "pthread_impl.h"
+#include <limits.h>
 
 int ftrylockfile(FILE *f)
 {