From 7da4229f2ef2bdf24b6196991d8e474fa42c1811 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 26 Dec 2011 01:08:46 +0100 Subject: Fix build on old 32 bit Centos (kernel 2.6.18) --- sql/threadpool_unix.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sql/threadpool_unix.cc') diff --git a/sql/threadpool_unix.cc b/sql/threadpool_unix.cc index 93094f599aa..e0310303020 100644 --- a/sql/threadpool_unix.cc +++ b/sql/threadpool_unix.cc @@ -190,6 +190,10 @@ static void set_next_timeout_check(ulonglong abstime); */ #if defined (__linux__) +#ifndef EPOLLRDHUP +/* Early 2.6 kernel did not have EPOLLRDHUP */ +#define EPOLLRDHUP 0 +#endif static int io_poll_create() { return epoll_create(1); -- cgit v1.2.1