Add missing header declarations for pg_basebackup and pg_{dump,restore}
authorMichael Paquier <michael@paquier.xyz>
Sat, 24 Jul 2021 10:05:14 +0000 (19:05 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 24 Jul 2021 10:05:14 +0000 (19:05 +0900)
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
src/bin/pg_dump/parallel.h

index 9ea98481d8fccf5b946715d43f05f8c72bf32ebe..8f69c573804f2773d1369edd932dffbffc1f262b 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <unistd.h>
 #include <dirent.h>
+#include <limits.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
 #include <signal.h>
index 0b39285a015618260c3e2d40c5830c5fd440147d..733f2af623670b3a17b2ef91f9461aa640fcc145 100644 (file)
@@ -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 */