X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Ftabcomplete.c;h=546c23977666be828b6d514603b1ee40dae14e5e;hp=b748c10e8608e65e87c9b83a980967a4ce95db5d;hb=16d6519a78fe4917ec865a7d084672579ab317ae;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505 diff --git a/client/tabcomplete.c b/client/tabcomplete.c index b748c10..546c239 100644 --- a/client/tabcomplete.c +++ b/client/tabcomplete.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tabcomplete.c,v 1.12 2005-06-25 15:46:01 adam Exp $ + * $Id: tabcomplete.c,v 1.14 2006-05-07 19:38:58 adam Exp $ */ #include @@ -22,6 +22,7 @@ extern char** curret_global_list; char* complete_from_list(char* completions[], const char *text, int state) { +#if HAVE_READLINE_READLINE_H static int idx; if(!completions) return NULL; @@ -40,6 +41,7 @@ char* complete_from_list(char* completions[], const char *text, int state) return (char*)strdup(completions[idx-1]); }; }; +#endif return NULL; }