diff options
| author | 2007-06-03 10:42:08 +0000 | |
|---|---|---|
| committer | 2007-06-03 10:42:08 +0000 | |
| commit | 461839e0f9902888873b88d52183482262da63f7 (patch) | |
| tree | 319b906c8beceaabd5591ee05abee39e987b5e79 /src/cmd_stats.cpp | |
| parent | And a minor cleanup of the /stats z code. Nothing spectacular.. (diff) | |
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
Diffstat (limited to 'src/cmd_stats.cpp')
| -rw-r--r-- | src/cmd_stats.cpp | 6 |
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" |
