commit d3c947676dc2b2e15fafbb542b9fa6335c047486
parent b5818150b959eb57ac400799f6c3ba017736485e
Author: David Eklov <david.eklov@gmail.com>
Date: Sun, 26 Jun 2016 23:25:56 -0500
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:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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"