summaryrefslogtreecommitdiff
path: root/sql/udf_example.c
diff options
context:
space:
mode:
authorStaale Smedseng <staale.smedseng@sun.com>2009-09-17 17:25:52 +0200
committerStaale Smedseng <staale.smedseng@sun.com>2009-09-17 17:25:52 +0200
commit5051100a1ad79060abc07fd63f4d376e05c116b5 (patch)
tree0320f9cfba455c1d3cb00160205b3412461fffb3 /sql/udf_example.c
parent4d6bf3ce1510a3ae2d1f33af204f5e31dec77f7c (diff)
parent38b6d49e826e1fde46c445d790eb7609b14c4220 (diff)
downloadmariadb-git-5051100a1ad79060abc07fd63f4d376e05c116b5.tar.gz
Merge from 5.0
Diffstat (limited to 'sql/udf_example.c')
-rw-r--r--sql/udf_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/udf_example.c b/sql/udf_example.c
index 30d85d95034..82af58ec502 100644
--- a/sql/udf_example.c
+++ b/sql/udf_example.c
@@ -139,10 +139,10 @@ typedef long long longlong;
#include <mysql.h>
#include <ctype.h>
-static pthread_mutex_t LOCK_hostname;
-
#ifdef HAVE_DLOPEN
+static pthread_mutex_t LOCK_hostname;
+
/* These must be right or mysqld will not find the symbol! */
my_bool metaphon_init(UDF_INIT *initid, UDF_ARGS *args, char *message);