summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-09-03 19:20:34 -0400
committerGreg Hudson <ghudson@mit.edu>2012-09-03 19:20:34 -0400
commitfe285ec16b65ac6177a404baa635c1d09054dc81 (patch)
tree6d28166c8847572acb3e9967839a69d0a5973938 /src
parentfe9a1d24c5ce9dd415658493c1811aa9e54aebce (diff)
downloadkrb5-fe285ec16b65ac6177a404baa635c1d09054dc81.tar.gz
krb5-fe285ec16b65ac6177a404baa635c1d09054dc81.tar.xz
krb5-fe285ec16b65ac6177a404baa635c1d09054dc81.zip
Try harder not to use clock_gettime in verto-k5ev
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. ticket: 7350 (new) target_version: 1.10.4 tags: pullup
Diffstat (limited to 'src')
-rw-r--r--src/util/k5ev/verto-k5ev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/k5ev/verto-k5ev.c b/src/util/k5ev/verto-k5ev.c
index d8155d4bee..bd3003b04f 100644
--- a/src/util/k5ev/verto-k5ev.c
+++ b/src/util/k5ev/verto-k5ev.c
@@ -37,7 +37,8 @@
#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