opts->u_max_value : value);
if (!result_pos)
-@@ -738,7 +738,7 @@
- value Pointer to variable
+@@ -864,7 +864,7 @@
+ value Pointer to variable
*/
--static void init_one_value(const struct my_option *option, gptr *variable,
-+static void init_one_value(const struct my_option *option, gptr variable,
+-static void init_one_value(const struct my_option *optp, gptr *variable,
++static void init_one_value(const struct my_option *optp, gptr variable,
longlong value)
{
- switch ((option->var_type & GET_TYPE_MASK)) {
+ DBUG_ENTER("init_one_value");
@@ -793,12 +793,12 @@
set the value to default value.
*/
---- mysql-5.0.41.org/configure.in 2007-05-02 16:39:58.000000000 +0200
-+++ mysql-5.0.41/configure.in 2007-05-10 15:02:12.075664162 +0200
-@@ -779,19 +779,20 @@
+--- mysql-5.0.56/configure.in~ 2008-04-07 09:44:34.000000000 +0300
++++ mysql-5.0.56/configure.in 2008-04-07 12:23:29.657592515 +0300
+@@ -826,9 +826,9 @@
AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
+ [AC_CHECK_LIB(nsl, gethostbyname_r)])])
AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
--AC_CHECK_FUNC(yp_get_default_domain, ,
-- AC_CHECK_LIB(nsl, yp_get_default_domain))
- AC_CHECK_FUNC(p2open, , AC_CHECK_LIB(gen, p2open))
+ AC_CHECK_FUNC(yp_get_default_domain, ,
+@@ -837,7 +837,11 @@
# This may get things to compile even if bind-8 is installed
AC_CHECK_FUNC(bind, , AC_CHECK_LIB(bind, bind))
# Check if crypt() exists in libc or libcrypt, sets LIBS if needed
-AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
--AC_SEARCH_LIBS(inet_aton, [socket nsl resolv])
+save_LIBS="$LIBS"
+AC_CHECK_LIB(crypt, crypt, [LIBS="-lcrypt $LIBS"; LIBCRYPT="-lcrypt"])
+AC_SUBST(LIBCRYPT)
+AC_CHECK_FUNC(crypt, AC_DEFINE([HAVE_CRYPT], [1], [crypt]))
+LIBS="$save_LIBS"
+ # See if we need a library for address lookup.
+ AC_SEARCH_LIBS(inet_aton, [socket nsl resolv])
- # For the sched_yield() function on Solaris
- AC_CHECK_FUNC(sched_yield, , AC_CHECK_LIB(posix4, sched_yield))
--- mysql-5.0.51/sql/Makefile.am~ 2007-12-06 22:13:15.000000000 +0200
+++ mysql-5.0.51/sql/Makefile.am 2007-12-06 22:14:55.492574255 +0200
@@ -43,7 +43,7 @@