post4.c:167:9: error: use of undeclared identifier 'SIGWINCH'
signal(SIGWINCH, sig_winch);
^
post4.c:207:12: error: use of undeclared identifier 'SIGWINCH'
sig_winch(SIGWINCH);
^
system:
Darwin megatron.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
compiler:
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
The definition is hidden behind feature check macros in signal.h:
Error:
system:
compiler:
The definition is hidden behind feature check macros in
signal.h
:If I add
-D_DARWIN_C_SOURCE
toCFLAGS
the project builds and all tests pass:Adding the following to
src/post4.h
allows it to compile on macOS 14.6.1/arm64: