summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index d75f217585d..57613b68448 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -47,8 +47,12 @@
#include <sys/select.h>
#endif
#endif
+#ifdef HAVE_POLL
+#include <sys/poll.h>
+#endif
+#endif /* !defined(MSDOS) && !defined(__WIN__) */
#ifdef HAVE_SYS_UN_H
-# include <sys/un.h>
+#include <sys/un.h>
#endif
#if defined(THREAD) && !defined(__WIN__)
#include <my_pthread.h> /* because of signal() */