1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00

Patch for Solaris 2.5 from: adrian@waltham.harvard.net

This commit is contained in:
Marc G. Fournier
1997-04-15 18:18:45 +00:00
parent 6fd4e2b414
commit 5dcc9bef6e
6 changed files with 17 additions and 7 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/port.c,v 1.3 1996/11/27 08:15:25 bryanh Exp $
* $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/port.c,v 1.4 1997/04/15 18:18:45 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -18,7 +18,9 @@
#include "postgres.h"
#include "port-protos.h"
#ifndef HAVE_GETRUSAGE
#include "rusagestub.h"
#endif /* HAVE_GETRUSAGE */
long
random()
@@ -32,6 +34,7 @@ srandom(int seed)
srand48((long int) seed);
}
#ifndef HAVE_GETRUSAGE
int
getrusage(int who, struct rusage *rusage)
{
@@ -68,3 +71,4 @@ getrusage(int who, struct rusage *rusage)
rusage->ru_stime.tv_usec = TICK_TO_USEC(u, tick_rate);
return(0);
}
#endif /* HAVE_GETRUSAGE */