summaryrefslogtreecommitdiff
path: root/mysys/my_pthread.c
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2001-01-01 14:17:10 +0200
committermonty@donna.mysql.com <>2001-01-01 14:17:10 +0200
commite05df20dc5e5791d1725ffe9add9b813b69a67c0 (patch)
tree290e7b9ca68fdbcc58714c71951a1a399601dec6 /mysys/my_pthread.c
parent336019a559d8a521586af8d44259dda4d2010bbc (diff)
downloadmariadb-git-e05df20dc5e5791d1725ffe9add9b813b69a67c0.tar.gz
Fixed gethostname_r tests to be more portable
Diffstat (limited to 'mysys/my_pthread.c')
-rw-r--r--mysys/my_pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_pthread.c b/mysys/my_pthread.c
index f54e11eae8b..b450bba473d 100644
--- a/mysys/my_pthread.c
+++ b/mysys/my_pthread.c
@@ -417,7 +417,7 @@ int my_pthread_cond_init(pthread_cond_t *mp, const pthread_condattr_t *attr)
#if !defined(my_gethostbyname_r) && defined(HAVE_GETHOSTBYNAME_R)
-#if defined(HAVE_GLIBC2_STYLE_GETHOSTBYNAME_R)
+#if defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE)
struct hostent *my_gethostbyname_r(const char *name,
struct hostent *result, char *buffer,
@@ -430,7 +430,7 @@ struct hostent *my_gethostbyname_r(const char *name,
return hp;
}
-#elif defined(_HPUX_SOURCE) || (defined(_AIX) && !defined(_AIX32_THREADS))
+#elif defined(HAVE_GETHOSTBYNAME_R_RETURN_INT)
struct hostent *my_gethostbyname_r(const char *name,
struct hostent *result, char *buffer,