mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
Fix compiler errors.
- Some platforms don't expose kill() unless _POSIX_C_SOURCE is defined. - fork(), execl(), and setsid() need unistd.h on some platforms. Basically, this fixes some platform-specific build errors.
This commit is contained in:
parent
0016f77440
commit
208831aec6
2 changed files with 2 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#define _POSIX_C_SOURCE 200809L
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stdbool.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue