replace: Fix checking for config.h #define in readline.h
authorAndreas Schneider <asn@samba.org>
Thu, 13 Dec 2018 17:45:14 +0000 (18:45 +0100)
committerGary Lockyer <gary@samba.org>
Sun, 16 Dec 2018 20:04:09 +0000 (21:04 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/replace/system/readline.h

index 5dc3e75dd3d96caf1b8030c41cdb515f0cc2f278..29379626e0dde8a8391d2bc041879221c02579f4 100644 (file)
@@ -48,7 +48,7 @@
 #ifdef HAVE_NEW_LIBREADLINE
 #ifdef HAVE_CPPFUNCTION
 #  define RL_COMPLETION_CAST (CPPFunction *)
-#elif HAVE_RL_COMPLETION_T
+#elif defined(HAVE_RL_COMPLETION_T)
 #  define RL_COMPLETION_CAST (rl_completion_t *)
 #else
 #  define RL_COMPLETION_CAST