We already define EV_USE_REALTIME to 0 to avoid the use of
clock_gettime() (to avoid depending on librt). But in some build
environments libev can detect support for a monotonic clock, which
also results in using clock_gettime(). Define EV_USE_MONOTONIC to 0
as well to prevent this.
(cherry picked from commit
fe285ec16b65ac6177a404baa635c1d09054dc81)
ticket: 7350
version_fixed: 1.10.4
status: resolved
#include "rename.h"
#include "autoconf.h"
#define EV_STANDALONE 1
-/* Avoids using clock_gettime; we probably shouldn't have to do this. */
+/* 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 */
#ifdef HAVE_POLL_H