[git commit future 1/1] getttyent.c: include stdio_ext.h only when needed

Khem Raj raj.khem at gmail.com
Sat Mar 19 18:51:25 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=87a9c359c6031740d0003927f6f1f1781ab974b8
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

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>
---
 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;
-- 
1.7.3.4



More information about the uClibc-cvs mailing list