php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10340 HAVE_SYS_RESOURCE_H not defined
Submitted: 2001-04-15 14:57 UTC Modified: 2001-05-23 06:11 UTC
From: elkner at linofee dot org Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.4pl1 OS: Linux 2.4.3 i686
Private report: No CVE-ID: None
 [2001-04-15 14:57 UTC] elkner at linofee dot org
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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC