From bbdfed3ce009e5f157893ca9794fd33fd223a4da Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Mon, 21 Mar 2011 16:29:30 +0100
Subject: [PATCH 152/396] getttyent.c: include stdio_ext.h only when needed

do not include pthread.h as the locking macro is provided by stdio.h

Signed-off-by: Peter S. Mazinger <ps.m@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.0.4

