$NetBSD: patch-aa,v 1.2 2006/10/14 18:41:34 xtraeme Exp $ Patch reported: http://bugs.mysql.com/bug.php?id=23293&thanks=4 --- config/ac-macros/readline.m4.orig 2007-11-15 09:06:34.000000000 -0500 +++ config/ac-macros/readline.m4 @@ -3,7 +3,9 @@ AC_DEFUN([MYSQL_CHECK_READLINE_DECLARES_ AC_TRY_COMPILE( [ #include "stdio.h" + #include "string.h" #include "readline/readline.h" + #include "readline/history.h" ], [ HIST_ENTRY entry; @@ -23,10 +25,11 @@ AC_DEFUN([MYSQL_CHECK_LIBEDIT_INTERFACE] AC_TRY_COMPILE( [ #include "stdio.h" + #include "string.h" #include "readline/readline.h" ], [ - char res= *(*rl_completion_entry_function)(0,0); + char res= (*rl_completion_entry_function)(0,0); completion_matches(0,0); ], [ @@ -44,6 +47,7 @@ AC_DEFUN([MYSQL_CHECK_NEW_RL_INTERFACE], AC_TRY_COMPILE( [ #include "stdio.h" + #include "string.h" #include "readline/readline.h" ], [