$OpenBSD: patch-shared_src_CMySQL_cpp,v 1.2 2005/09/07 13:58:35 wilfried Exp $ --- shared/src/CMySQL.cpp.orig Tue Sep 6 19:18:47 2005 +++ shared/src/CMySQL.cpp Tue Sep 6 19:20:24 2005 @@ -451,7 +451,11 @@ bool CMySQL::mysqlShutdown() if (!isConnected()) return false; +#if ( MYSQL_VERSION_ID >= 40103 && MYSQL_VERSION_ID != 50000 ) + if (mysql_shutdown(mysql,SHUTDOWN_DEFAULT) != 0) +#else if (mysql_shutdown(mysql) != 0) +#endif { if (emiterror) emitError();