mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 18:46:38 -04:00
MySQL Connector ODBC is an ODBC driver for interfacing to MySQL databases. This is specific to mysql version 8.0.X branch.
24 lines
636 B
C
24 lines
636 B
C
--- include/mysql-8.0/my_sys.h.orig 2022-12-10 21:58:26 UTC
|
|
+++ include/mysql-8.0/my_sys.h
|
|
@@ -34,8 +34,12 @@
|
|
#include "my_config.h"
|
|
|
|
#ifdef HAVE_ALLOCA_H
|
|
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
|
|
+#include <stdlib.h>
|
|
+#else
|
|
#include <alloca.h>
|
|
#endif
|
|
+#endif
|
|
#include <limits.h>
|
|
#ifdef _WIN32
|
|
#include <malloc.h>
|
|
@@ -322,6 +326,8 @@ typedef int (*IO_CACHE_CALLBACK)(IO_CACHE *);
|
|
|
|
struct IO_CACHE;
|
|
typedef int (*IO_CACHE_CALLBACK)(IO_CACHE *);
|
|
+
|
|
+typedef unsigned long ulong;
|
|
|
|
struct IO_CACHE_SHARE {
|
|
mysql_mutex_t mutex; /* To sync on reads into buffer. */
|