diff options
author | Monty <monty@mariadb.org> | 2016-02-07 15:00:30 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2016-02-07 15:00:30 +0200 |
commit | d80b8442a68093106e00a9a38b7b2c593002a72c (patch) | |
tree | 17881f51bbc0fbe4b25d09d23e5a292a75a58298 /include/my_net.h | |
parent | 07b8aefe90ca830d2de068f2966cd2288b158a88 (diff) | |
download | mariadb-git-d80b8442a68093106e00a9a38b7b2c593002a72c.tar.gz |
Fixes needed to compile with musl C library
Patch originally by Codarren Velvindron
Diffstat (limited to 'include/my_net.h')
-rw-r--r-- | include/my_net.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/my_net.h b/include/my_net.h index 1ebb71ead23..91d780a276d 100644 --- a/include/my_net.h +++ b/include/my_net.h @@ -36,9 +36,11 @@ C_MODE_START #ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> #endif -#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_IOCTL_H #include <sys/ioctl.h> #endif |