diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-03 22:01:29 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-04 18:47:49 -0400 |
commit | 218a3787d26296103225b7680bacdfd5fc6d2955 (patch) | |
tree | b3dc571cf4fe0a2485322bfb72cf8115579d4330 /swaylock/render.c | |
parent | Move extra roundtrip into password.c (diff) | |
download | sway-218a3787d26296103225b7680bacdfd5fc6d2955.tar.gz sway-218a3787d26296103225b7680bacdfd5fc6d2955.tar.zst sway-218a3787d26296103225b7680bacdfd5fc6d2955.zip |
Import stdlib.h and define POSIX macro for rand()
Diffstat (limited to 'swaylock/render.c')
-rw-r--r-- | swaylock/render.c | 4 |
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 @@ | |||
1 | #include <wayland-client.h> | 1 | #define _POSIX_C_SOURCE 199506L |
2 | #include <math.h> | 2 | #include <math.h> |
3 | #include <stdlib.h> | ||
4 | #include <wayland-client.h> | ||
3 | #include "cairo.h" | 5 | #include "cairo.h" |
4 | #include "background-image.h" | 6 | #include "background-image.h" |
5 | #include "swaylock/swaylock.h" | 7 | #include "swaylock/swaylock.h" |