aboutsummaryrefslogtreecommitdiff
path: root/swaylock/main.c
diff options
context:
space:
mode:
authorDavid Eklov <david.eklov@gmail.com>2016-06-26 23:25:56 -0500
committerDavid Eklov <david.eklov@gmail.com>2016-06-26 23:25:56 -0500
commitd3c947676dc2b2e15fafbb542b9fa6335c047486 (patch)
treec5b7006e1d987db8bee9ba92445fbce6198ec2c6 /swaylock/main.c
parentb5818150b959eb57ac400799f6c3ba017736485e (diff)
Bug fix: Add missing header file, unistd.h
Without unistd.h the following functions getuid, alarm and close are implicitly declared causing compilation to fail due to -Werror=implicit-function-declaration
Diffstat (limited to 'swaylock/main.c')
-rw-r--r--swaylock/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaylock/main.c b/swaylock/main.c
index b5ce63ef..a0a2f1cb 100644
--- a/swaylock/main.c
+++ b/swaylock/main.c
@@ -11,6 +11,7 @@
#include <getopt.h>
#include <signal.h>
#include <stdbool.h>
+#include <unistd.h>
#include "client/window.h"
#include "client/registry.h"