PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #10340 HAVE_SYS_RESOURCE_H not defined
Submitted:15 Apr 2001 2:57pm UTC Modified: 23 May 2001 6:11am UTC
From:elkner at linofee dot org Assigned to:
Status:Bogus Category:Compile Failure
Version:4.0.4pl1 OS:Linux 2.4.3 i686
View/Vote Developer Edit Submission

Welcome! If you don't have a SVN account, you can't do anything here. You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
SVN Username: SVN Password:
Quick Fix:
Status: Assign to:
Category:
Summary:
From: elkner at linofee dot org
New email:
Version: OS:
New/Additional Comment:

[15 Apr 2001 2:57pm 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"
[23 May 2001 6:11am UTC] sniper@php.net
http://www.php.net/FAQ.php#6.12

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC