summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthread.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-03-18 00:33:29 +0000
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>2025-03-29 14:50:31 +0000
commit729a6f56d08e3440f18704c1cf0b5672c0b90419 (patch)
tree0f379d00d2bf84228cbc15b55aa947226330db50 /src/corelib/thread/qthread.cpp
parent355e0d85eb4a05acd4d5c9d6b2f1cfce7ccdb144 (diff)
forkfd: fix build with FreeBSD 14.2: convertForkfdWaitFlagsToWaitFlags()
The FreeBSD-specific pdfork() code in forkfd_freebsd.c code was failing to build because convertForkfdWaitFlagsToWaitFlags() wasn't defined. That function is behind a check for #ifdef HAVE_WAITID, which is only defined if _POSIX_VERSION is 2008 or later. That macro has been stuck at 2001 for the past 23 years. I can't explain how this code compiled with FreeBSD 14.1 and earlier, because I am sure it was using pdfork(). So just #define HAVE_WAITID for FreeBSD. It must have been there since much earlier than 13.0, but that seems like a reasonable starting point today. We also need to #include <sys/param.h> to have the __FreeBSD_version__ macro, something that also wasn't needed in earlier versions. It was probably indirectly #include'd by something. Pick-to: 6.8 6.9 Change-Id: I262d9922128d046221b7fffd0ec481bc0012f55c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'src/corelib/thread/qthread.cpp')
0 files changed, 0 insertions, 0 deletions