Index: src/backend/distributed/commands/multi_copy.c
--- src/backend/distributed/commands/multi_copy.c.orig	2021-03-03 15:26:26.000000000 +0100
+++ src/backend/distributed/commands/multi_copy.c	2021-03-03 23:11:03.102680000 +0100
@@ -51,6 +51,8 @@
 #include "libpq-fe.h"
 #include "miscadmin.h"
 
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <arpa/inet.h> /* for htons */
 #include <netinet/in.h> /* for htons */
 #include <string.h>
