diff options
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/storage/file/fd.c | 4 | ||||
| -rw-r--r-- | src/backend/tcop/postgres.c | 10 |
2 files changed, 3 insertions, 11 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index efb34d4dcb..e3b19ca1ed 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -75,6 +75,7 @@ #include <dirent.h> #include <sys/file.h> #include <sys/param.h> +#include <sys/resource.h> /* for getrlimit */ #include <sys/stat.h> #include <sys/types.h> #ifndef WIN32 @@ -83,9 +84,6 @@ #include <limits.h> #include <unistd.h> #include <fcntl.h> -#ifdef HAVE_SYS_RESOURCE_H -#include <sys/resource.h> /* for getrlimit */ -#endif #include "access/xact.h" #include "access/xlog.h" diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 671edcb3c7..7bec4e4ff5 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -23,16 +23,10 @@ #include <limits.h> #include <signal.h> #include <unistd.h> +#include <sys/resource.h> #include <sys/select.h> #include <sys/socket.h> -#ifdef HAVE_SYS_RESOURCE_H #include <sys/time.h> -#include <sys/resource.h> -#endif - -#ifdef WIN32 -#include "rusagestub.h" -#endif #include "access/parallel.h" #include "access/printtup.h" @@ -4860,7 +4854,7 @@ ShowUsage(const char *title) * The following rusage fields are not defined by POSIX, but they're * present on all current Unix-like systems so we use them without any * special checks. Some of these could be provided in our Windows - * emulation in src/port/getrusage.c with more work. + * emulation in src/port/win32getrusage.c with more work. */ appendStringInfo(&str, "!\t%ld kB max resident size\n", |
