From ace2aa764e19eb1fcb24fa796cebad365f09df11 Mon Sep 17 00:00:00 2001 From: Roger Light Date: Mon, 8 Mar 2021 23:57:04 +0000 Subject: [PATCH] Fix cmake epoll detection. --- ChangeLog.txt | 3 +++ src/CMakeLists.txt | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index ee2fd96b85..47bda05641 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -8,6 +8,9 @@ Broker: - Fix QoS 0 messages not being delivered when max_queued_bytes was configured. Closes #2123. +Build: +- Fix cmake epoll detection. + 2.0.8 - 2021-02-25 ================== diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f283c8d0a9..7be3988984 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -77,6 +77,11 @@ if (WITH_BUNDLED_DEPS) include_directories(${mosquitto_SOURCE_DIR} ${mosquitto_SOURCE_DIR}/deps) endif (WITH_BUNDLED_DEPS) +find_path(HAVE_SYS_EPOLL_H sys/epoll.h) +if (HAVE_SYS_EPOLL_H) + add_definitions("-DWITH_EPOLL") +endif() + option(INC_BRIDGE_SUPPORT "Include bridge support for connecting to other brokers?" ON) if (INC_BRIDGE_SUPPORT)