I did: > * lib/windows-path.h: New file. > * lib/windows-path.c: New file.
Oops. On Cygwin 3.x, the CI reports a compilation error: In file included from ../../lib/windows-path.c:18: ./config.h:3273:29: error: 'free' undeclared here (not in a function) 3273 | _GL_ATTRIBUTE_DEALLOC (free, 1) | ^~~~ ./config.h:3258:67: note: in definition of macro '_GL_ATTRIBUTE_DEALLOC' 3258 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) | ^ ../../lib/windows-path.h:38:24: note: in expansion of macro '_GL_ATTRIBUTE_DEALLOC_FREE' 38 | _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../../lib/windows-path.c:21: ../../lib/windows-path.h:1:1: note: 'free' is defined in header '<stdlib.h>'; did you forget to '#include <stdlib.h>'? +++ |+#include <stdlib.h> 1 | /* Auxiliary functions for the creation of subprocesses on Windows. This patch should fix it. 2024-10-26 Bruno Haible <br...@clisp.org> execute, spawn-pipe: Fix compilation error on Cygwin (regr. 2024-10-22). * lib/windows-path.h: Include <stdlib.h>. diff --git a/lib/windows-path.h b/lib/windows-path.h index f4199db697..161ad078a0 100644 --- a/lib/windows-path.h +++ b/lib/windows-path.h @@ -23,6 +23,8 @@ #error "Please include config.h first." #endif +#include <stdlib.h> + #ifdef __cplusplus extern "C" {