Skip to content

Commit

Permalink
Compile less libev code
Browse files Browse the repository at this point in the history
In verto-k5ev.c, turn off optional watchers in ev.c, and enable the
specific watcher types we use.
  • Loading branch information
greghudson committed Mar 29, 2017
1 parent e8e1d84 commit b0f2388
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/util/verto/verto-k5ev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0f2388

Please sign in to comment.