From fdea0e602b4ec013736aff5615db0777ed89b187 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Tue, 9 Jul 2019 13:38:10 +0200 Subject: [PATCH] Repair macOS build Avoid macro redefinition of `open' in lib/fcntl.h to break use of it as a struct member in src/font.c. * src/font.c: #undef open --- src/font.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/font.c b/src/font.c index b4a85a1ca5a..457f3f99583 100644 --- a/src/font.c +++ b/src/font.c @@ -44,6 +44,10 @@ along with GNU Emacs. If not, see . */ #include TERM_HEADER #endif /* HAVE_WINDOW_SYSTEM */ +/* Avoid macro definition of `open' in generated lib/fcntl.h to mess up + use of it as a struct member. */ +#undef open + #define DEFAULT_ENCODING Qiso8859_1 /* Vector of Vfont_weight_table, Vfont_slant_table, and Vfont_width_table. */ -- 2.39.5