Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / os_bsd.c
index 2f3bd666a19aa64872572fe6e0f257d459cd3099..9a052d2f5ea6092b22fabb75afa0d33c68dc643a 100644 (file)
@@ -59,8 +59,8 @@
  */
 int os_get_rusage(struct Client *cptr, int uptime, EnumFn enumerator)
 {
-  char buf[256];
 #ifdef HAVE_GETRUSAGE
+  char buf[256];
   struct rusage rus;
   time_t secs;
 
@@ -113,6 +113,7 @@ int os_get_rusage(struct Client *cptr, int uptime, EnumFn enumerator)
 
 #else /* HAVE_GETRUSAGE */
 #if HAVE_TIMES
+  char buf[256];
   struct tms tmsbuf;
   time_t secs, mins;
   int hzz = 1, ticpermin;