From: nic Date: Wed, 14 Apr 2004 19:01:38 +0000 (+0000) Subject: fix compiler warning X-Git-Tag: 1.2.2~94 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=aa9dc61dce4b6f2f937a96562accb4be3606a094;p=fs%2Flustre-release.git fix compiler warning --- diff --git a/lnet/utils/parser.c b/lnet/utils/parser.c index db5292d..426565e 100644 --- a/lnet/utils/parser.c +++ b/lnet/utils/parser.c @@ -33,7 +33,11 @@ #define READLINE_LIBRARY #include #endif -//extern char **completion_matches __P((char *, rl_compentry_func_t *)); + +/* completion_matches() is #if 0-ed out in modern glibc */ +#ifndef completion_matches +#define completion_matches rl_completion_matches +#endif extern void using_history(void); extern void stifle_history(int); extern void add_history(char *); diff --git a/lustre/portals/utils/parser.c b/lustre/portals/utils/parser.c index db5292d..426565e 100644 --- a/lustre/portals/utils/parser.c +++ b/lustre/portals/utils/parser.c @@ -33,7 +33,11 @@ #define READLINE_LIBRARY #include #endif -//extern char **completion_matches __P((char *, rl_compentry_func_t *)); + +/* completion_matches() is #if 0-ed out in modern glibc */ +#ifndef completion_matches +#define completion_matches rl_completion_matches +#endif extern void using_history(void); extern void stifle_history(int); extern void add_history(char *);