From 35a075c5d1cd905912c26efd86e4b05e246a5eb5 Mon Sep 17 00:00:00 2001
From: Aleksander Alekseev <aleksander@timescale.com>
Date: Tue, 25 Jun 2024 16:39:13 +0300
Subject: [PATCH v1] Dirty fix

---
 src/include/regex/regex.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/include/regex/regex.h b/src/include/regex/regex.h
index d08113724f..bdb720e309 100644
--- a/src/include/regex/regex.h
+++ b/src/include/regex/regex.h
@@ -1,3 +1,6 @@
+#ifndef __REGEX_H_
+#define __REGEX_H_              /* Dirty hack for MacOS SDK 15 beta */
+
 #ifndef _REGEX_H_
 #define _REGEX_H_				/* never again */
 /*
@@ -187,3 +190,4 @@ extern bool RE_compile_and_execute(text *text_re, char *dat, int dat_len,
 								   int nmatch, regmatch_t *pmatch);
 
 #endif							/* _REGEX_H_ */
+#endif                          /* __REGEX_H_ */
-- 
2.45.2

