Date sent: Mon, 12 Jan 1998 07:24:55 +0100 From: Fabien Tassin To: inn-patches@vix.com Subject: [1.8current] lib/resource.c micro patch Organization: EERIE - France Under Solaris, getrusage() prototype is not defined in sys/resource.h (even if it is mentionned in the manual page) $ uname -sr SunOS 5.5.1 $ man getrusage ... SYNOPSIS #include int getrusage(int who, struct rusage *rusage); ... $ find /usr/include/. -type f -print | xargs grep getrusage $ same problem with Solaris 2.4 and 2.5. Corrected in 2.6. *** inn/lib/resource.c Mon Oct 20 23:30:18 1997 --- devel/lib/resource.c Sun Dec 7 05:00:03 1997 *************** *** 15,20 **** --- 15,22 ---- #define TIMEVALasDOUBLE(t) \ ((double)(t).tv_sec + ((double)(t).tv_usec) / 1000000.0) + int getrusage(int who, struct rusage *rusage); + int GetResourceUsage(double *usertime, double *systime) { struct rusage R; -- Fabien Tassin -=- tassin@eerie.fr