Iwao KIMURA on Mon, 13 Jul 1998 01:20:01 +0900


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

config program patch


Dear developers,

I tested 2.0.10beta on FreeBSD 2.2.5 and find that
config/has_getrusage.c should be applied the following patch.

*** config/has_getrusage.c.orig Sun Jul 12 22:00:17 1998
--- config/has_getrusage.c      Mon Jul 13 01:10:49 1998
***************
*** 1,4 ****
  #define _INCLUDE_POSIX_SOURCE
  #include <sys/time.h>
  #include <sys/resource.h>
! main(){ extern int getrusage(); struct rusage a; printf("%d",getrusage());}
--- 1,4 ----
  #define _INCLUDE_POSIX_SOURCE
  #include <sys/time.h>
  #include <sys/resource.h>
! main(){ extern int getrusage(int, struct rusage*); struct rusage *a; printf("%d",getrusage(RUSAGE_SELF, a));}

|           Iwao KIMURA  <iwao@math.tsukuba.ac.jp>            |
|                  Institute of Mathematics,                  |
|           University of TSUKUBA, IBARAKI, JAPAN.            |