aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd2019-07-09 13:38:10 +0200
committerMattias EngdegÄrd2019-07-09 13:38:10 +0200
commitfdea0e602b4ec013736aff5615db0777ed89b187 (patch)
tree142e7d51abf0044f1aa9787b028069f0a46778f3 /src
parent95dce77c5ecb46cff62c2bc45c2a239872b5f38c (diff)
downloademacs-fdea0e602b4ec013736aff5615db0777ed89b187.tar.gz
emacs-fdea0e602b4ec013736aff5615db0777ed89b187.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/font.c4
1 files changed, 4 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>. */
44#include TERM_HEADER 44#include TERM_HEADER
45#endif /* HAVE_WINDOW_SYSTEM */ 45#endif /* HAVE_WINDOW_SYSTEM */
46 46
47/* Avoid macro definition of `open' in generated lib/fcntl.h to mess up
48 use of it as a struct member. */
49#undef open
50
47#define DEFAULT_ENCODING Qiso8859_1 51#define DEFAULT_ENCODING Qiso8859_1
48 52
49/* Vector of Vfont_weight_table, Vfont_slant_table, and Vfont_width_table. */ 53/* Vector of Vfont_weight_table, Vfont_slant_table, and Vfont_width_table. */