postgres.git / summary / log / commit / refs

commit    bc0cc68f8a1648029424e9300b2e4457acd474a6
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Sat Jul 24 10:05:14 2021 +0000
First released in: 15.0

    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.


src/bin/pg_basebackup/pg_basebackup.c | 1 + src/bin/pg_dump/parallel.h | 2 ++ 2 files changed, 3 insertions(+) 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 */ [parent: 6f164e6d1761]