aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Gysin <christoph.gysin@gmail.com>2015-11-25 14:10:21 +0200
committerChristoph Gysin <christoph.gysin@gmail.com>2015-11-25 14:39:09 +0200
commita99aa92bc6e2a491ea32c7d8ab378a9b55faa945 (patch)
treebfed5bc55263a82818e3ac2aeb5471efef88928e
parenta642827dfbf68de07c625e7c127efefaa9ac1ae1 (diff)
extensions: add missing include
This fixes a compiler warning: ../sway/extensions.c: In function ‘set_background’: ../sway/extensions.c:16:37: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] struct background_config *config = malloc(sizeof(struct background_config)); ^ ../sway/extensions.c:16:37: warning: incompatible implicit declaration of built-in function ‘malloc’ ../sway/extensions.c:16:37: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
-rw-r--r--sway/extensions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/extensions.c b/sway/extensions.c
index 35a2632e..aa51b474 100644
--- a/sway/extensions.c
+++ b/sway/extensions.c
@@ -1,3 +1,4 @@
+#include <stdlib.h>
#include <wlc/wlc.h>
#include <wlc/wlc-wayland.h>
#include "wayland-desktop-shell-server-protocol.h"