summaryrefslogtreecommitdiffstats
path: root/source4/lib/smbreadline
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-06 05:42:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:37 -0500
commitbf5b0606a53251d47ae220d3771b953d8e4a7b22 (patch)
treef10d116036c2a95eca6afc982f80c7dad5fa9804 /source4/lib/smbreadline
parenteaf584cd9746c2c1cc532901633b1a47a16a8836 (diff)
downloadsamba-bf5b0606a53251d47ae220d3771b953d8e4a7b22.tar.gz
samba-bf5b0606a53251d47ae220d3771b953d8e4a7b22.tar.xz
samba-bf5b0606a53251d47ae220d3771b953d8e4a7b22.zip
r18134: the lib/replace/system/filesys.h in this patch should be
system/filesys.h, but it doesn't work. Metze is looking into it :-) (This used to be commit 0dc0b7ff613d39f93c1680116c04348b720afaff)
Diffstat (limited to 'source4/lib/smbreadline')
-rw-r--r--source4/lib/smbreadline/readline.m44
-rw-r--r--source4/lib/smbreadline/smbreadline.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/smbreadline/readline.m4 b/source4/lib/smbreadline/readline.m4
index cff7ece1261..e19f0a1744f 100644
--- a/source4/lib/smbreadline/readline.m4
+++ b/source4/lib/smbreadline/readline.m4
@@ -72,10 +72,10 @@ AC_MSG_CHECKING(whether to use extern readline)
if test x"$EXTERNAL_READLINE" = x"yes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_LIBREADLINE,1,[Whether the system has readline])
- SMB_SUBSYSTEM(SMBREADLINE, [lib/smbreadline/smbreadline.o], [READLINE])
+ SMB_SUBSYSTEM(SMBREADLINE, [lib/smbreadline/smbreadline.o], [READLINE LIBREPLACE])
SMB_EXT_LIB(READLINE, [${TERMLIBS}])
SMB_ENABLE(READLINE,YES)
else
- SMB_SUBSYSTEM(SMBREADLINE, [lib/smbreadline/smbreadline.o], [])
+ SMB_SUBSYSTEM(SMBREADLINE, [lib/smbreadline/smbreadline.o], [LIBREPLACE])
AC_MSG_RESULT(no)
fi
diff --git a/source4/lib/smbreadline/smbreadline.c b/source4/lib/smbreadline/smbreadline.c
index 78febf5000b..3d046f6099e 100644
--- a/source4/lib/smbreadline/smbreadline.c
+++ b/source4/lib/smbreadline/smbreadline.c
@@ -21,9 +21,9 @@
#include "includes.h"
#include "pstring.h"
-
-#include <unistd.h>
-#include "system/readline.h"
+#include "lib/replace/system/filesys.h"
+#include "lib/replace/system/select.h"
+#include "lib/replace/system/readline.h"
/*******************************************************************
Similar to sys_select() but catch EINTR and continue.