Commit 7da4229f authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix build on old 32 bit Centos (kernel 2.6.18)

parent 711d7452
...@@ -46,3 +46,10 @@ IF(HAVE_DECL_SHM_HUGETLB) ...@@ -46,3 +46,10 @@ IF(HAVE_DECL_SHM_HUGETLB)
SET(HUGETLB_USE_PROC_MEMINFO 1) SET(HUGETLB_USE_PROC_MEMINFO 1)
SET(HAVE_LARGE_PAGE_OPTION 1) SET(HAVE_LARGE_PAGE_OPTION 1)
ENDIF() ENDIF()
IF(CMAKE_SIZEOF_VOID_P EQUAL 4 AND CMAKE_SYSTEM_PROCESSOR MATCHES "86")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=i686")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i686")
SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -march=i686")
ENDIF()
...@@ -190,6 +190,10 @@ static void set_next_timeout_check(ulonglong abstime); ...@@ -190,6 +190,10 @@ static void set_next_timeout_check(ulonglong abstime);
*/ */
#if defined (__linux__) #if defined (__linux__)
#ifndef EPOLLRDHUP
/* Early 2.6 kernel did not have EPOLLRDHUP */
#define EPOLLRDHUP 0
#endif
static int io_poll_create() static int io_poll_create()
{ {
return epoll_create(1); return epoll_create(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment