[git commit] getttyent.c: include stdio_ext.h only when needed
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jun 15 12:00:30 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=da192bef87b60ecd616561dc28da71619acfbbe8
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
do not include pthread.h as the locking macro is provided by stdio.h
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
libc/misc/ttyent/getttyent.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libc/misc/ttyent/getttyent.c b/libc/misc/ttyent/getttyent.c
index 474f7f0..0441cb6 100644
--- a/libc/misc/ttyent/getttyent.c
+++ b/libc/misc/ttyent/getttyent.c
@@ -30,12 +30,11 @@
#include <features.h>
#include <ttyent.h>
#include <stdio.h>
-#include <stdio_ext.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#ifdef __UCLIBC_HAS_THREADS__
-# include <pthread.h>
+# include <stdio_ext.h>
#endif
static char zapchar;
More information about the uClibc-cvs
mailing list