Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d1fdf7c
)
fix compiler warning
author
nic
<nic>
Wed, 14 Apr 2004 19:01:38 +0000
(19:01 +0000)
committer
nic
<nic>
Wed, 14 Apr 2004 19:01:38 +0000
(19:01 +0000)
lnet/utils/parser.c
patch
|
blob
|
history
lustre/portals/utils/parser.c
patch
|
blob
|
history
diff --git
a/lnet/utils/parser.c
b/lnet/utils/parser.c
index
db5292d
..
426565e
100644
(file)
--- a/
lnet/utils/parser.c
+++ b/
lnet/utils/parser.c
@@
-33,7
+33,11
@@
#define READLINE_LIBRARY
#include <readline/readline.h>
#endif
#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 *);
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
(file)
--- a/
lustre/portals/utils/parser.c
+++ b/
lustre/portals/utils/parser.c
@@
-33,7
+33,11
@@
#define READLINE_LIBRARY
#include <readline/readline.h>
#endif
#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 *);
extern void using_history(void);
extern void stifle_history(int);
extern void add_history(char *);