summaryrefslogtreecommitdiff
path: root/src/cmd_stats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_stats.cpp')
-rw-r--r--src/cmd_stats.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp
index 9a0dc5ef7..037ffe304 100644
--- a/src/cmd_stats.cpp
+++ b/src/cmd_stats.cpp
@@ -15,6 +15,12 @@
#include "configreader.h"
#ifndef WIN32
#include <sys/resource.h>
+
+/* This is just to be completely certain that the change which fixed getrusage on RH7 doesn't break anything else -- Om */
+#ifndef RUSAGE_SELF
+#define RUSAGE_SELF 0
+#endif
+
#endif
#include "users.h"
#include "modules.h"