projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5e8962
)
src/utils_latency.c: Ensure that LLONG_MAX is defined.
author
Florian Forster
<octo@collectd.org>
Tue, 14 Jul 2015 06:34:52 +0000
(08:34 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 29 Jul 2015 10:02:42 +0000
(12:02 +0200)
EPEL5 doesn't have it in <limits.h> apparently.
src/utils_latency.c
patch
|
blob
|
history
diff --git
a/src/utils_latency.c
b/src/utils_latency.c
index
d570ab6
..
926159a
100644
(file)
--- a/
src/utils_latency.c
+++ b/
src/utils_latency.c
@@
-32,6
+32,10
@@
#include <math.h>
#include <limits.h>
+#ifndef LLONG_MAX
+# define LLONG_MAX 9223372036854775807LL
+#endif
+
#ifndef HISTOGRAM_NUM_BINS
# define HISTOGRAM_NUM_BINS 1000
#endif