Issue regarding SFD_CLOEXEC. error: "''O_CLOEXEC' undeclared here (not in a function); did you mean 'FD_CLOEXEC'?"
christianon39@outlook.com
christianon39@outlook.com
Tue Jun 18 15:07:12 GMT 2024
Hi, I am trying to build wlroots, but get this error in meson logs:
Command line: `cc /home/Chris/wlroots/build/meson-private/tmprxphcsub/testfile.c -o /home/Chris/wlroots/build/meson-private/tmprxphcsub/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -std=c11` -> 1
stderr:
In file included from /home/Chris/wlroots/build/meson-private/tmprxphcsub/testfile.c:2:
/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?
I am using Windows 10 Version 22H2 Build: 19045.3448.
CPU: Ryzen 5 2600
GPU: Nvidia RTX 2070
RAM: 32GB
More information about the Cygwin
mailing list