summaryrefslogtreecommitdiff
path: root/source4/client
diff options
context:
space:
mode:
Diffstat (limited to 'source4/client')
-rw-r--r--source4/client/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/client/client.c b/source4/client/client.c
index e748edd347..e9fe32967b 100644
--- a/source4/client/client.c
+++ b/source4/client/client.c
@@ -2388,7 +2388,7 @@ history
****************************************************************************/
static int cmd_history(struct smbclient_context *ctx, const char **args)
{
-#if defined(HAVE_LIBREADLINE)
+#if defined(HAVE_LIBREADLINE) && defined(HAVE_DECL_RL_EVENT_HOOK)
HIST_ENTRY **hlist;
int i;