From 461839e0f9902888873b88d52183482262da63f7 Mon Sep 17 00:00:00 2001 From: om Date: Sun, 3 Jun 2007 10:42:08 +0000 Subject: Probably fix 2nd compile issue on RH7 and add some checks which *should* ensure none of this can break anything else git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7223 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_stats.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cmd_stats.cpp') 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 + +/* 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" -- cgit v1.3.1-10-gc9f91