postgres.git / summary / log / commit / refs
commit fda530013282de284b1352ad310c2c53ead8ba78
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Sat Apr 04 17:22:04 2026 +0000
Remove unnecessary #include "spin.h" from shmem.h
Commit 6b8238cb6a removed the last usage of slock_t from the
file. proc.c was relying the indirect #include, so add it to proc.c
directly.
src/include/storage/proc.h | 1 +
src/include/storage/shmem.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index 1dad125706e..22822fc68d7 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -22,6 +22,7 @@
#include "storage/pg_sema.h"
#include "storage/proclist_types.h"
#include "storage/procnumber.h"
+#include "storage/spin.h"
/* Avoid including clog.h here */
typedef int XidStatus;
diff --git a/src/include/storage/shmem.h b/src/include/storage/shmem.h
index 2fccbdb534c..a2eb499d63c 100644
--- a/src/include/storage/shmem.h
+++ b/src/include/storage/shmem.h
@@ -21,7 +21,6 @@
#ifndef SHMEM_H
#define SHMEM_H
-#include "storage/spin.h"
#include "utils/hsearch.h"
[parent: c7d09595e46f]