summaryrefslogtreecommitdiff
path: root/mysys/my_gethostbyname.c
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-06-04 00:40:27 +0300
committermonty@hundin.mysql.fi <>2002-06-04 00:40:27 +0300
commit4b1836ee36635bc643ba6e3107fdbf916fffe967 (patch)
tree675836bfd2d520dcffdb4499ac8cf51045c407f2 /mysys/my_gethostbyname.c
parent544f95c45112993df1d31d3eda859dd5e4efff89 (diff)
downloadmariadb-git-4b1836ee36635bc643ba6e3107fdbf916fffe967.tar.gz
Enable LOAD DATA LOCAL INFILE in mysql_test
Added syntax for column comments (for compability with 4.1) Fix of ALTER TABLE RENAME
Diffstat (limited to 'mysys/my_gethostbyname.c')
-rw-r--r--mysys/my_gethostbyname.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/mysys/my_gethostbyname.c b/mysys/my_gethostbyname.c
index 898ca694121..1380257f660 100644
--- a/mysys/my_gethostbyname.c
+++ b/mysys/my_gethostbyname.c
@@ -18,7 +18,9 @@
/* Thread safe version of gethostbyname_r() */
#include "mysys_priv.h"
+#ifdef THREAD
#include "my_pthread.h"
+#endif
#include <assert.h>
#if !defined(MSDOS) && !defined(__WIN__)
#include <netdb.h>
@@ -28,11 +30,6 @@
/* This file is not needed if my_gethostbyname_r is a macro */
#if !defined(my_gethostbyname_r)
-#ifndef THREAD
-#define pthread_mutex_lock(A)
-#define pthread_mutex_unlock(A)
-#endif
-
/*
Emulate SOLARIS style calls, not because it's better, but just to make the
usage of getbostbyname_r simpler.