summaryrefslogtreecommitdiffstats
path: root/source/include/includes.h
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
commit00ba54d4ee9ad875c5cfbee09d4b745df5f116ab (patch)
tree0df603c548b642fa2d4f5b079fb8b4c07951d4b0 /source/include/includes.h
parent926591067cd8646426ca06df0b00a1d6f6dd5752 (diff)
downloadsamba-00ba54d4ee9ad875c5cfbee09d4b745df5f116ab.tar.gz
samba-00ba54d4ee9ad875c5cfbee09d4b745df5f116ab.tar.xz
samba-00ba54d4ee9ad875c5cfbee09d4b745df5f116ab.zip
Adding rewritten restore code ... Old code is still there
surrounded by a OLD_DOTARPUT.
Diffstat (limited to 'source/include/includes.h')
-rw-r--r--source/include/includes.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h
index 62c044603d7..8c8ee32301d 100644
--- a/source/include/includes.h
+++ b/source/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