diff options
author | David Eklov <david.eklov@gmail.com> | 2016-06-26 23:25:56 -0500 |
---|---|---|
committer | David Eklov <david.eklov@gmail.com> | 2016-06-26 23:25:56 -0500 |
commit | d3c947676dc2b2e15fafbb542b9fa6335c047486 (patch) | |
tree | c5b7006e1d987db8bee9ba92445fbce6198ec2c6 /swaylock/main.c | |
parent | b5818150b959eb57ac400799f6c3ba017736485e (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.c | 1 |
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" |