diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-07-24 19:05:14 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-07-24 19:05:14 +0900 |
commit | bc0cc68f8a1648029424e9300b2e4457acd474a6 (patch) | |
tree | 303c9f5e8ac166353481fc94975a83d05a72d077 /src | |
parent | 6f164e6d17616a157ea5d9e34dbb1b211c080c41 (diff) | |
download | postgresql-bc0cc68f8a1648029424e9300b2e4457acd474a6.tar.gz postgresql-bc0cc68f8a1648029424e9300b2e4457acd474a6.zip |
Add missing header declarations for pg_basebackup and pg_{dump,restore}
This fixes two compilation failures caused by 6f164e6. Interesting to
see that missing <limits.h> dies not fail in Linux or even Windows. On
MacOS, it fails, though.
Per various buildfarm members.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 1 | ||||
-rw-r--r-- | src/bin/pg_dump/parallel.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 9ea98481d8f..8f69c573804 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -15,6 +15,7 @@ #include <unistd.h> #include <dirent.h> +#include <limits.h> #include <sys/stat.h> #include <sys/wait.h> #include <signal.h> diff --git a/src/bin/pg_dump/parallel.h b/src/bin/pg_dump/parallel.h index 0b39285a015..733f2af6236 100644 --- a/src/bin/pg_dump/parallel.h +++ b/src/bin/pg_dump/parallel.h @@ -16,6 +16,8 @@ #ifndef PG_DUMP_PARALLEL_H #define PG_DUMP_PARALLEL_H +#include <limits.h> + #include "pg_backup_archiver.h" /* Function to call in leader process on completion of a worker task */ |