Commit e05d3a05 authored by Fabrice Popineau's avatar Fabrice Popineau Committed by Eli Zaretskii

Fix minor build problems related to MinGW64. Read $srcdir/nt/ when $MSYSTEM is
 "MINGW64" as well.

 nt/inc/ms-w32.h (pthread_sigmask): Undefine if defined, for MinGW64.

 src/unexw32.c (_start) [__MINGW64__]: Define to __start.
parent af05bef2
2014-01-11 Fabrice Popineau <>
* Read $srcdir/nt/ when $MSYSTEM is
"MINGW64" as well.
2014-01-11 Paul Eggert <>
Merge from gnulib, incorporating:
......@@ -24,7 +24,8 @@ dnl along with GNU Emacs. If not, see <>.
AC_INIT(emacs, 24.3.50)
if test "x$MSYSTEM" = "xMINGW32"
dnl We get MINGW64 with MSYS2
if test "x$MSYSTEM" = "xMINGW32" -o "x$MSYSTEM" = "xMINGW64"
. $srcdir/nt/
2014-01-11 Fabrice Popineau <>
* inc/ms-w32.h (pthread_sigmask): Undefine if defined, for MinGW64.
2013-12-31 Fabrice Popineau <>
* inc/ms-w32.h (sys_kill): Fix prototype.
......@@ -388,6 +388,11 @@ extern int sigemptyset (sigset_t *);
extern int sigaddset (sigset_t *, int);
extern int sigfillset (sigset_t *);
extern int sigprocmask (int, const sigset_t *, sigset_t *);
/* MinGW64 defines pthread_sigmask as zero in its pthread_signal.h
header, but we have an implementation for that function in w32proc.c. */
#ifdef pthread_sigmask
#undef pthread_sigmask
extern int pthread_sigmask (int, const sigset_t *, sigset_t *);
extern int sigismember (const sigset_t *, int);
extern int setpgrp (int, int);
2014-01-11 Fabrice Popineau <>
* unexw32.c (_start) [__MINGW64__]: Define to __start.
2014-01-11 Eli Zaretskii <>
* xdisp.c (try_window_id): Don't use this function's optimizations
......@@ -85,6 +85,13 @@ DWORD_PTR extra_bss_size_static = 0;
/* MinGW64 doesn't add a leading underscore to external symbols,
whereas sets up LD_SWITCH_SYSTEM_TEMACS to force the
entry point at __start, with two underscores. */
#ifdef __MINGW64__
#define _start __start
/* Startup code for running on NT. When we are running as the dumped
version, we need to bootstrap our heap and .bss section into our
address space before we can actually hand off control to the startup
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment