From 0f0148e020b6f85447f26de17c2b0b002bcdf498 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 29 Oct 2014 11:48:59 +0100 Subject: lib/texpect: make the code more portable by using "replace.h" and "system/wait.h" Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- lib/texpect/texpect.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/lib/texpect/texpect.c b/lib/texpect/texpect.c index ac889792b3..2ce33a286c 100644 --- a/lib/texpect/texpect.c +++ b/lib/texpect/texpect.c @@ -31,20 +31,10 @@ * SUCH DAMAGE. */ -#include "config.h" +#include "replace.h" +#include "system/filesys.h" +#include "system/wait.h" -#ifndef HAVE_SYS_TYPES_H -#include -#endif -#ifdef HAVE_SYS_WAIT_H -#include -#endif -#include -#include -#include -#ifdef HAVE_UNISTD_H -#include -#endif #ifdef HAVE_PTY_H #include #endif @@ -60,9 +50,7 @@ #endif /* STREAMPTY */ #include -#include #include -#include struct command { enum { CMD_EXPECT = 0, CMD_SEND, CMD_PASSWORD } type; -- cgit