aboutsummaryrefslogtreecommitdiff
path: root/swaylock
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-03 22:01:29 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-04 18:47:49 -0400
commit218a3787d26296103225b7680bacdfd5fc6d2955 (patch)
treeb3dc571cf4fe0a2485322bfb72cf8115579d4330 /swaylock
parent0138f79b4aae563e1223737856ab44c8634c76b0 (diff)
Import stdlib.h and define POSIX macro for rand()
Diffstat (limited to 'swaylock')
-rw-r--r--swaylock/render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/swaylock/render.c b/swaylock/render.c
index 79609e96..cb3ed276 100644
--- a/swaylock/render.c
+++ b/swaylock/render.c
@@ -1,5 +1,7 @@
-#include <wayland-client.h>
+#define _POSIX_C_SOURCE 199506L
#include <math.h>
+#include <stdlib.h>
+#include <wayland-client.h>
#include "cairo.h"
#include "background-image.h"
#include "swaylock/swaylock.h"