summaryrefslogtreecommitdiff
path: root/src/history.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/history.c')
-rw-r--r--src/history.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/history.c b/src/history.c
index 20da719..fd3e424 100644
--- a/src/history.c
+++ b/src/history.c
@@ -3,6 +3,9 @@
#include <string.h>
#include "ratpoison.h"
+
+#ifdef HAVE_READLINE_HISTORY_H
+
#include "readline/history.h"
static char *
@@ -125,3 +128,5 @@ int history_expand_line (char *string, char **output)
{
return history_expand (string, output);
}
+
+#endif /* HAVE_READLINE_HISTORY_H */