$NetBSD: patch-ac,v 1.1 2009/10/17 06:31:41 taca Exp $

--- mysql.c.orig	2009-02-01 17:43:39.000000000 +0900
+++ mysql.c
@@ -17,10 +17,12 @@
 #endif
 
 #ifdef HAVE_MYSQL_H
+#include <my_global.h>
 #include <mysql.h>
 #include <errmsg.h>
 #include <mysqld_error.h>
 #else
+#include <mysql/my_global.h>
 #include <mysql/mysql.h>
 #include <mysql/errmsg.h>
 #include <mysql/mysqld_error.h>
