diff options
Diffstat (limited to 'src/backend/port')
| -rw-r--r-- | src/backend/port/sparc_solaris/port-protos.h | 5 | ||||
| -rw-r--r-- | src/backend/port/sparc_solaris/port.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/backend/port/sparc_solaris/port-protos.h b/src/backend/port/sparc_solaris/port-protos.h index 01c073e957..c2cbf5803b 100644 --- a/src/backend/port/sparc_solaris/port-protos.h +++ b/src/backend/port/sparc_solaris/port-protos.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: port-protos.h,v 1.3 1996/12/28 02:11:49 momjian Exp $ + * $Id: port-protos.h,v 1.4 1997/04/15 18:18:33 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -45,5 +45,8 @@ extern int inet_aton(const char *cp, struct in_addr *addr); /* In system library, but can't find prototype in system library .h files */ extern int gethostname(char *name, int namelen); +/* In system library, but can't find prototype in system library .h files */ +#include <sys/resource.h> +extern int getrusage(int who, struct rusage *rusage); #endif /* PORT_PROTOS_H */ diff --git a/src/backend/port/sparc_solaris/port.c b/src/backend/port/sparc_solaris/port.c index eab445a49d..8710ec9545 100644 --- a/src/backend/port/sparc_solaris/port.c +++ b/src/backend/port/sparc_solaris/port.c @@ -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 */ |
