Hi,

in commit 29d55bf8 (Mon Dec 14 2020), const qualifiers were added in spawn_int.h:

extern int __spawni (pid_t *pid, const char *path,
                     const posix_spawn_file_actions_t *file_actions,
                     const posix_spawnattr_t *attrp, const char *const argv[],
                                                  /* ^^^^^ */
                     const char *const envp[], int use_path);
                  /* ^^^^^ */

However, the implementation for Windows in in spawni.c was not changed:

/* Native Windows API.  */
int
__spawni (pid_t *pid, const char *file,
          const posix_spawn_file_actions_t *file_actions,
          const posix_spawnattr_t *attrp, char *const argv[],
                                      /* ^-- missing "const" */
          char *const envp[], int use_path)
      /* ^-- missing "const" */

So there's a compile error because the types don't match.

Regards,
Adrian


Reply via email to