From aa9dc61dce4b6f2f937a96562accb4be3606a094 Mon Sep 17 00:00:00 2001 From: nic Date: Wed, 14 Apr 2004 19:01:38 +0000 Subject: [PATCH] fix compiler warning --- lnet/utils/parser.c | 6 +++++- lustre/portals/utils/parser.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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 *); -- 1.8.3.1