]> git.eshelyaron.com Git - emacs.git/commitdiff
Repair macOS build
authorMattias Engdegård <mattiase@acm.org>
Tue, 9 Jul 2019 11:38:10 +0000 (13:38 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 9 Jul 2019 11:38:10 +0000 (13:38 +0200)
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

index b4a85a1ca5a31297eccf112a032e038caf5f218b..457f3f9958310812684851759d73c8da6462246a 100644 (file)
@@ -44,6 +44,10 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 #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. */