christianon39--- via Cygwin writes: > /usr/include/sys/signalfd.h:17:17: error: 'O_CLOEXEC' undeclared here (not in > a function); did you mean 'FD_CLOEXEC'? > 17 | SFD_CLOEXEC = O_CLOEXEC, > | ^~~~~~~~~ > | FD_CLOEXEC > ----------- > Header "sys/signalfd.h" has symbol "SFD_CLOEXEC" : NO > > subprojects/wayland-1.20.0/meson.build:83:3: ERROR: Problem encountered: > SFD_CLOEXEC is needed to compile Wayland libraries > > Is there any solution for this? Or is it a bug that needs to be fixed?
The use of O_CLOEXEC in this file is not explicitly guarded by a feature test macro, it is actually defined through sys/_default_fcntl.h, which in turn only does this when __POSIX_VISIBLE >= 200809. Since these are system specific implementation headers there is a reasonable expectation that you've set up the FTM correctly for the system you are working on (which obviously wasn't the case during the compilation whose error you have shown. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple