From b0f2388874372de5e760b735f665839622286374 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Tue, 28 Mar 2017 14:12:48 -0400 Subject: [PATCH] Compile less libev code In verto-k5ev.c, turn off optional watchers in ev.c, and enable the specific watcher types we use. --- src/util/verto/verto-k5ev.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util/verto/verto-k5ev.c b/src/util/verto/verto-k5ev.c index 74fa368a83..713c4f2425 100644 --- a/src/util/verto/verto-k5ev.c +++ b/src/util/verto/verto-k5ev.c @@ -41,7 +41,12 @@ /* Avoid using clock_gettime, which would create a dependency on librt. */ #define EV_USE_MONOTONIC 0 #define EV_USE_REALTIME 0 -#define EV_FEATURES 0x5f /* Everything but back ends */ +#define EV_FEATURES 0x4f /* No back ends or optional watchers */ +/* Enable the optional watcher types we use. */ +#define EV_IDLE_ENABLE 1 +#define EV_SIGNAL_ENABLE 1 +#define EV_CHILD_ENABLE 1 +/* Enable the back ends we want. */ #ifdef HAVE_POLL_H #define EV_USE_POLL 1 #endif -- 2.47.2