Skip to content

Commit

Permalink
Fix compiler errors.
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
ggreer committed Aug 5, 2018
1 parent 0016f77 commit 208831a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sway/swaynag.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define _POSIX_C_SOURCE 200809L
#include <fcntl.h>
#include <signal.h>
#include <stdbool.h>
Expand Down
1 change: 1 addition & 0 deletions swaynag/swaynag.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <assert.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include <wayland-client.h>
#include <wayland-cursor.h>
#include "log.h"
Expand Down

0 comments on commit 208831a

Please sign in to comment.