Closed yurivict closed 7 months ago
I was under the impression that SIGWINCH existed on BSD through signal.h which is included in term.h.
This is what it says in the arch one: / Nonstandard signals found in all modern POSIX systems (including both BSD and Linux). /
SIGWINCH
definitely exists on FreeBSD.
#define _POSIX_C_SOURCE 2
in term.h causes SIGWINCH
to disappear.
When #include <signal>
is before #include "term.h"
- it builds fine.
Do you know why #define _POSIX_C_SOURCE 2
is needed?
It's required for defining sigaction. But it seems I can use #define _POSIX_C_SOURCE 200809L instead.
You could try it with
instead of _POSIX_C_SOURCE 2 see if it compiles.
It still fails to build with #define _POSIX_C_SOURCE 200809L
.
The manpage sigaction(2) doesn't mention that _POSIX_C_SOURCE
should be define for it to be available.
it was vscode that was complaining but I found a way around it. removed the #define in the latest commit.
Build fails:
Version: 2.2 FreeBSD 14.0