summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-03 20:46:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-03 20:46:22 +0000
commit24b84ea9a588c1499b278c7646abdc38b9f964f6 (patch)
treeff6d9ade645a6361181d9ba1c0e7c982072df1ad /src/commands.cpp
parenta83a728b91e3274ec5d367fa33b6f86b2292670d (diff)
fixed warning of redefinition of RUSAGE_SELF
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1299 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 2eff8186d..26f2c9ef2 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -42,8 +42,10 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
+#ifndef RUSAGE_SELF
#define RUSAGE_SELF 0
#define RUSAGE_CHILDREN -1
+#endif
#include "connection.h"
#include "users.h"
#include "servers.h"