cvs: /php4/ext/standard config.m4 microtime.c

From: Date: Wed, 23 Feb 2000 14:14:04 +0000
Subject: cvs: /php4/ext/standard config.m4 microtime.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-10722@lists.php.net to get a copy of this message
sas Wed Feb 23 06:14:04 2000 EDT Modified files: /php4/ext/standard config.m4 microtime.c Log: Include <sys/resource.h> for getrusage(2) PR: #3479 Index: php4/ext/standard/config.m4 diff -u php4/ext/standard/config.m4:1.16 php4/ext/standard/config.m4:1.17 --- php4/ext/standard/config.m4:1.16 Wed Dec 29 20:52:12 1999 +++ php4/ext/standard/config.m4 Wed Feb 23 06:13:34 2000 @@ -1,4 +1,4 @@ -dnl $Id: config.m4,v 1.16 1999/12/30 04:52:12 sas Exp $ -*- sh -*- +dnl $Id: config.m4,v 1.17 2000/02/23 14:13:34 sas Exp $ -*- sh -*- divert(2)dnl @@ -150,6 +150,8 @@ ]) AC_CRYPT_CAP + +AC_CHECK_HEADERS(sys/resource.h) PHP_EXTENSION(standard) Index: php4/ext/standard/microtime.c diff -u php4/ext/standard/microtime.c:1.15 php4/ext/standard/microtime.c:1.16 --- php4/ext/standard/microtime.c:1.15 Sat Feb 19 15:41:21 2000 +++ php4/ext/standard/microtime.c Wed Feb 23 06:13:34 2000 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: microtime.c,v 1.15 2000/02/19 23:41:21 zeev Exp $ */ +/* $Id: microtime.c,v 1.16 2000/02/23 14:13:34 sas Exp $ */ #include <stdlib.h> #ifdef HAVE_UNISTD_H @@ -24,6 +24,9 @@ #endif #include <string.h> #include <errno.h> +#ifdef HAVE_SYS_RESOURCE_H +#include <sys/resource.h> +#endif #include "php.h" #include "microtime.h"

« previous php.version4 (#10722) next »