Whamcloud - gitweb
fix compiler warning
authornic <nic>
Wed, 14 Apr 2004 19:01:38 +0000 (19:01 +0000)
committernic <nic>
Wed, 14 Apr 2004 19:01:38 +0000 (19:01 +0000)
lnet/utils/parser.c
lustre/portals/utils/parser.c

index db5292d..426565e 100644 (file)
 #define        READLINE_LIBRARY
 #include <readline/readline.h>
 #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 *);
index db5292d..426565e 100644 (file)
 #define        READLINE_LIBRARY
 #include <readline/readline.h>
 #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 *);