summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2016-02-07 15:00:30 +0200
committerMonty <monty@mariadb.org>2016-02-07 15:00:30 +0200
commitd80b8442a68093106e00a9a38b7b2c593002a72c (patch)
tree17881f51bbc0fbe4b25d09d23e5a292a75a58298 /libmysql/libmysql.c
parent07b8aefe90ca830d2de068f2966cd2288b158a88 (diff)
downloadmariadb-git-d80b8442a68093106e00a9a38b7b2c593002a72c.tar.gz
Fixes needed to compile with musl C library
Patch originally by Codarren Velvindron
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 8af5a284b9a..69ddb155f52 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -47,9 +47,11 @@
#include <sys/select.h>
#endif
#endif /* !defined(__WIN__) */
-#ifdef HAVE_POLL
+#if defined(HAVE_POLL_H)
+#include <poll.h>
+#elif defined(HAVE_SYS_POLL_H)
#include <sys/poll.h>
-#endif
+#endif /* defined(HAVE_POLL_H) */
#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
#endif