summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2022-11-05 03:31:28 +0000
committerMichael Paquier2022-11-05 03:31:28 +0000
commit2a71de8915b41cb1a927fc7870efb138bbcd0b77 (patch)
treeeaf92291fd117a7f5182018f6303aa1091c30319
parenta5ac3e76fe96035db44e8e254f55f333c7a11634 (diff)
Remove unneeded includes of <sys/stat.h>
Since bfb9dfd, none of the files updated in this commit have any stat() calls, so these inclusions are not necessary, for the same reasons as 233cf6e. Per discussion with John Naylor. Discussion: https://postgr.es/m/CAFBsxsGGGX7KD6RxbNoSJzuSc8Gz3hOxcfhTOMLB_hJcm68dKQ@mail.gmail.com
-rw-r--r--src/backend/access/heap/rewriteheap.c1
-rw-r--r--src/backend/storage/file/copydir.c1
-rw-r--r--src/timezone/pgtz.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/backend/access/heap/rewriteheap.c b/src/backend/access/heap/rewriteheap.c
index a34e9b352d..2fe9e48e50 100644
--- a/src/backend/access/heap/rewriteheap.c
+++ b/src/backend/access/heap/rewriteheap.c
@@ -102,7 +102,6 @@
*/
#include "postgres.h"
-#include <sys/stat.h>
#include <unistd.h>
#include "access/heapam.h"
diff --git a/src/backend/storage/file/copydir.c b/src/backend/storage/file/copydir.c
index 8a866191e1..0cea4cbc89 100644
--- a/src/backend/storage/file/copydir.c
+++ b/src/backend/storage/file/copydir.c
@@ -20,7 +20,6 @@
#include <fcntl.h>
#include <unistd.h>
-#include <sys/stat.h>
#include "common/file_utils.h"
#include "miscadmin.h"
diff --git a/src/timezone/pgtz.c b/src/timezone/pgtz.c
index 40096ed792..eff11333a9 100644
--- a/src/timezone/pgtz.c
+++ b/src/timezone/pgtz.c
@@ -14,7 +14,6 @@
#include <ctype.h>
#include <fcntl.h>
-#include <sys/stat.h>
#include <time.h>
#include "common/file_utils.h"