I was afraid it would be not as simple as changing a few lines of code responsible for emitting code into config.h.
Luckily, both AC_TYPE_PID_T and winpthreads define pid_t to the same underlying types: int for 32-bit targets and __int64 (long long) for 64-bit targets. So, there is no disagreement. - Kirill Makurin ________________________________ From: [email protected] <[email protected]> on behalf of Zack Weinberg <[email protected]> Sent: Tuesday, December 30, 2025 2:41 AM To: Autoconf Bugs <[email protected]> Subject: Re: Issue with AC_TYPE_PID_T when using winpthreads with MSVC On Mon, Dec 29, 2025, at 8:35 AM, Kirill Makurin wrote: > Can AC_TYPE_PID_T be changed to use `typedef` instead of `#define` to > provide definition of `pid_t`? If this is not feasible, we will resort > to either undefining `pid_t` or guarding the winpthreads's typedefs. This would be a big project, as config.status currently can *only* generate #defines into config.h. It would also be a major compatibility break. We can adjust what the macro definition is, though. For instance, if our definition and yours don't agree on the underlying type to be used, we can fix that. zw
