summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>1998-09-18 12:47:46 +0000
committerRichard Sharpe <sharpe@samba.org>1998-09-18 12:47:46 +0000
commitc198d4c8be6b1a4f042151714107ff37fc446471 (patch)
treed46b322e10455d0811b2b2eecc23b6b8812dd08f /source3/include
parentd1a82e643b2e75db8e0c5afa7280ca383917ba64 (diff)
downloadsamba-c198d4c8be6b1a4f042151714107ff37fc446471.tar.gz
samba-c198d4c8be6b1a4f042151714107ff37fc446471.tar.bz2
samba-c198d4c8be6b1a4f042151714107ff37fc446471.zip
Adding rewritten restore code ... Old code is still there
surrounded by a OLD_DOTARPUT. (This used to be commit 00ba54d4ee9ad875c5cfbee09d4b745df5f116ab)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 62c044603d..8c8ee32301 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -611,6 +611,31 @@ union semun {
#define ULTRIX_AUTH 1
#endif
+/* This is the naughty bit. Autoconf should declare these symbols if
+ it finds that GNU Readline is installed. */
+
+#define HAVE_LIBREADLINE
+#define HAVE_READLINE_READLINE_H
+#define HAVE_READLINE_HISTORY_H
+
+#ifdef HAVE_LIBREADLINE
+# ifdef HAVE_READLINE_READLINE_H
+# include <readline/readline.h>
+# ifdef HAVE_READLINE_HISTORY_H
+# include <readline/history.h>
+# endif
+# else
+# ifdef HAVE_READLINE_H
+# include <readline.h>
+# ifdef HAVE_HISTORY_H
+# include <history.h>
+# endif
+# else
+# undef HAVE_LIBREADLINE
+# endif
+# endif
+#endif
+
#ifndef HAVE_STRDUP
char *strdup(const char *s);
#endif