summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2010-05-31 12:29:54 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2010-05-31 12:29:54 -0300
commit5dec0c963713822cafc5f2f65b485e8846938318 (patch)
treebbbd0851e788a87bdf80dacc828f8de102b381b4 /cmd-line-utils
parent7e84f28c74e6e75f2093fa7e21b6a2b3781b9fe9 (diff)
downloadmariadb-git-5dec0c963713822cafc5f2f65b485e8846938318.tar.gz
Bug#53445: Build with -Wall and fix warnings that it generates
Fix various mismatches between function's language linkage. Any particular function that is declared in C++ but should be callable from C must have C linkage. Note that function types with different linkages are also distinct. Thus, if a function type is declared in C code, it will have C linkage (same if declared in a extern "C" block).
Diffstat (limited to 'cmd-line-utils')
-rw-r--r--cmd-line-utils/readline/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-line-utils/readline/input.c b/cmd-line-utils/readline/input.c
index 84c0422059a..af81d9cd3b0 100644
--- a/cmd-line-utils/readline/input.c
+++ b/cmd-line-utils/readline/input.c
@@ -318,7 +318,9 @@ _rl_input_available ()
return (_kbhit ());
#endif
+#if !defined (HAVE_SELECT)
return 0;
+#endif
}
int