#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.11 1997/04/09 08:29:17 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.12 1997/04/15 18:17:43 scrappy Exp $
#
#-------------------------------------------------------------------------
bin/pg_dump/Makefile \
include/config.h \
backend/utils/Gen_fmgrtab.sh \
- include/os.h
+ include/os.h \
+ Makefile.port
.DEFAULT:
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.27 1997/04/02 03:48:01 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.28 1997/04/15 18:18:21 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
# include <sys/resource.h>
#endif
+#include <port-protos.h>
+
bool VacuumRunning = false;
static int MESSAGE_LEVEL; /* message level */
*
* 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 $
*
*-------------------------------------------------------------------------
*/
/* 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 */
*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include "port-protos.h"
+#ifndef HAVE_GETRUSAGE
#include "rusagestub.h"
+#endif /* HAVE_GETRUSAGE */
long
random()
srand48((long int) seed);
}
+#ifndef HAVE_GETRUSAGE
int
getrusage(int who, struct rusage *rusage)
{
rusage->ru_stime.tv_usec = TICK_TO_USEC(u, tick_rate);
return(0);
}
+#endif /* HAVE_GETRUSAGE */
INSTL_EXE_OPTS="-m 555"
INSTL_LIB_OPTS="-m 664"
-if test "`echo $INSTALL | awk '{ i=split($1, a, "/"); print a[i] }'`." = "install."
+if test "`basename $INSTALL`." = "install."
then
INSTLOPTS="-c $INSTLOPTS"
INSTL_EXE_OPTS="-c $INSTL_EXE_OPTS"
INSTL_EXE_OPTS="-m 555"
INSTL_LIB_OPTS="-m 664"
-if test "`echo $INSTALL | awk '{ i=split($1, a, "/"); print a[[i]] }'`." = "install."
+if test "`basename $INSTALL`." = "install."
then
INSTLOPTS="-c $INSTLOPTS"
INSTL_EXE_OPTS="-c $INSTL_EXE_OPTS"