From e3a034e84f12a8103984205634ccc936d7d8240a Mon Sep 17 00:00:00 2001 From: Pavan Deolasee Date: Wed, 17 Feb 2016 18:07:21 +0530 Subject: Fix a few compiler warnings. --- src/include/postgres.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/include/postgres.h') diff --git a/src/include/postgres.h b/src/include/postgres.h index c0e43643c2..142d781344 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -49,6 +49,15 @@ #include "utils/elog.h" #include "utils/palloc.h" +#ifdef HAVE_SYS_RESOURCE_H +#include +#include +#endif + +#ifndef HAVE_GETRUSAGE +#include "rusagestub.h" +#endif + /* ---------------------------------------------------------------- * Section 1: variable-length datatypes (TOAST support) * ---------------------------------------------------------------- @@ -723,4 +732,10 @@ extern void ExceptionalCondition(const char *conditionName, //#define PGXC_COORD // for PGXC coordinator compiling //#define PGXC_DATANODE // for PGXC data node compiling + +extern void ResetUsageCommon(struct rusage *save_r, struct timeval *save_t); +extern void ResetUsage(void); +extern void ShowUsageCommon(const char *title, struct rusage *save_r, struct + timeval *save_t); + #endif /* POSTGRES_H */ -- cgit v1.2.3