aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-02 14:28:42 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-02 14:28:42 +0100
commitc364a599f7124c9165629e72a5c9f267c937ed28 (patch)
tree43f77d4979f75c81215bcd29f92ca4d9a2e090e3
parent1b651788129fd65fc6d0dc44f8397494c8eaec49 (diff)
downloadblogc-c364a599f7124c9165629e72a5c9f267c937ed28.tar.gz
blogc-c364a599f7124c9165629e72a5c9f267c937ed28.tar.bz2
blogc-c364a599f7124c9165629e72a5c9f267c937ed28.zip
blogc: fix rusage macro
-rw-r--r--src/blogc/rusage.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/blogc/rusage.h b/src/blogc/rusage.h
index d94aebd..4065552 100644
--- a/src/blogc/rusage.h
+++ b/src/blogc/rusage.h
@@ -9,9 +9,13 @@
#ifndef ___RUSAGE_H
#define ___RUSAGE_H
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif /* HAVE_CONFIG_H */
+
#ifdef HAVE_SYS_RESOURCE_H
-#define HAVE_RUSAGE
-#endif
+#define HAVE_RUSAGE 1
+#endif /* HAVE_SYS_RESOURCE_H */
typedef struct {
long long cpu_time; // in microseconds