Bug #10340: HAVE_SYS_RESOURCE_H not defined

From: Date: Sun, 15 Apr 2001 18:57:53 +0000
Subject: Bug #10340: HAVE_SYS_RESOURCE_H not defined
Groups: php.dev 
Request: Send a blank email to php-dev+get-51624@lists.php.net to get a copy of this message
From: elkner@linofee.org Operating system: Linux 2.4.3 i686 PHP version: 4.0.4pl1 PHP Bug Type: Compile Failure Bug description: HAVE_SYS_RESOURCE_H not defined configure checks (6524, 25069) for rusage seem to be ok, but make chokes during compilation of ext/standard/microtime.c about unknown storage size uf usg (struct rusage) and undeclared RUSAGE_SELF. Also there are several warnings about redeclaration of RLIM_INFINITY... Quick and dirty fix for the compiler error: --- microtime.c Mon Jun 5 21:47:44 2000 +++ ../../../../php-4.0.4pl1/ext/standard/microtime.c Sun Apr 15 20:02:12 2001 @@ -38,6 +38,7 @@ #include <string.h> #include <stdio.h> #include <errno.h> +#include <sys/resource.h> #include "microtime.h" -- Edit Bug report at: http://bugs.php.net/?id=10340&edit=1

« previous php.dev (#51624) next »