blob: b7741117e42833e9ef17cd1e6b2faa8d4d467ab2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-av,v 1.4 2004/10/28 01:08:15 xtraeme Exp $
--- sql/mysqld.cc.orig 2003-12-15 08:23:47.000000000 +1100
+++ sql/mysqld.cc
@@ -106,7 +106,18 @@ extern "C" { // Because of SCO 3.2V4
int allow_severity = LOG_INFO;
int deny_severity = LOG_WARNING;
-#ifdef __STDC__
+#ifdef __FreeBSD__
+# include <osreldate.h>
+# if defined(__STDC__) && __FreeBSD_version < 500000
+# define my_fromhost(A) fromhost(A)
+# define my_hosts_access(A) hosts_access(A)
+# define my_eval_client(A) eval_client(A)
+# else
+# define my_fromhost(A) fromhost()
+# define my_hosts_access(A) hosts_access()
+# define my_eval_client(A) eval_client()
+# endif
+#elif defined(__STDC__)
#define my_fromhost(A) fromhost(A)
#define my_hosts_access(A) hosts_access(A)
#define my_eval_client(A) eval_client(A)
|