Subject: Re: bug#78924: 31.0.50; recent gnulib update breaks on current OSX (15.5)
From: Paul Eggert <[email-masked]>
To: Liam Stitt <[email-masked]>
Cc: [email-masked]
Date: Sun, 29 Jun 2025 06:11:55 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks for reporting that. I updated Gnulib and installed the attached 
patch to Emacs, which should fix things.

From 30bfb03adfa88e94c9f81eacbd125f96a32432c0 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email-masked]>
Date: Sun, 29 Jun 2025 06:07:23 -0700
Subject: [PATCH] Update from Gnulib by running admin/merge-gnulib

---
 lib/open.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/open.c b/lib/open.c
index 8356c14f5b3..d76372fd603 100644
--- a/lib/open.c
+++ b/lib/open.c
@@ -55,6 +55,10 @@ orig_open (const char *filename, int flags, mode_t mode)
 #include <sys/stat.h>
 #include <unistd.h>
 
+#ifndef HAVE_WORKING_O_DIRECTORY
+# define HAVE_WORKING_O_DIRECTORY false
+#endif
+
 #ifndef OPEN_TRAILING_SLASH_BUG
 # define OPEN_TRAILING_SLASH_BUG false
 #endif
-- 
2.48.1