On 06/03/2014 01:00 PM, Vincent Belaïche wrote: > dup2.c:35:0: warning: "WIN32_LEAN_AND_MEAN" redefined [enabled by default] Why is your build trying to compile lib/dup2.c? That appears to be the real bug here. Emacs is supposed to supply its own dup2 on Microsoft Windows, and the build shouldn't try to compile the Gnulib dup2.c there. > msvc-inval.h, given its naming, is probably a file from the MS Visual C > compiler suite No, it's from Gnulib. It's a part of Gnulib that Emacs is not using.