From e4f0ed898dbfaffc287be7e695cd486ea2597f97 Mon Sep 17 00:00:00 2001
From: Que Quotion <quequotion@gmail.com>
Date: Fri, 5 Jan 2024 19:34:24 +0000
Subject: [PATCH] explicitly include stdlib.h, fixes #36

---
 src/addhelper/addhelper.c               | 1 +
 src/bench/bench.c                       | 1 +
 src/firepaint/firepaint.c               | 1 +
 src/grid/grid.c                         | 1 +
 src/highlightcontent/highlightcontent.c | 1 +
 src/loginout/loginout.c                 | 1 +
 src/mblur/mblur.c                       | 1 +
 src/reflex/reflex.c                     | 1 +
 src/scalefilter/scalefilter.c           | 1 +
 src/shelf/shelf.c                       | 1 +
 src/showmouse/showmouse.c               | 1 +
 src/splash/splash.c                     | 1 +
 src/trailfocus/trailfocus.c             | 1 +
 src/vidcap/vidcap.c                     | 1 +
 src/wallpaper/wallpaper.c               | 1 +
 src/widget/widget.c                     | 1 +
 16 files changed, 16 insertions(+)

diff --git a/src/addhelper/addhelper.c b/src/addhelper/addhelper.c
index 3bc8a6b..29b0b6a 100644
--- a/src/addhelper/addhelper.c
+++ b/src/addhelper/addhelper.c
@@ -24,6 +24,7 @@
  */
 
 #include <compiz-core.h>
+#include <stdlib.h>
 #include "addhelper_options.h"
 
 #define GET_ADD_DISPLAY(d)                            \
diff --git a/src/bench/bench.c b/src/bench/bench.c
index 9cdef8c..ae64c58 100644
--- a/src/bench/bench.c
+++ b/src/bench/bench.c
@@ -21,6 +21,7 @@
  **/
 
 #include <compiz-core.h>
+#include <stdlib.h>
 
 #include "bench_tex.h"
 #include "bench_options.h"
diff --git a/src/firepaint/firepaint.c b/src/firepaint/firepaint.c
index b147b03..69a477c 100644
--- a/src/firepaint/firepaint.c
+++ b/src/firepaint/firepaint.c
@@ -20,6 +20,7 @@
  */
 
 #include <compiz-core.h>
+#include <stdlib.h>
 
 #include "firepaint_options.h"
 #include "firepaint_tex.h"
diff --git a/src/grid/grid.c b/src/grid/grid.c
index a8d5152..e4b5624 100644
--- a/src/grid/grid.c
+++ b/src/grid/grid.c
@@ -23,6 +23,7 @@
  */
 
 #include <compiz-core.h>
+#include <stdlib.h>
 #include <string.h>
 #include "grid_options.h"
 
diff --git a/src/highlightcontent/highlightcontent.c b/src/highlightcontent/highlightcontent.c
index 33bf932..5d66978 100644
--- a/src/highlightcontent/highlightcontent.c
+++ b/src/highlightcontent/highlightcontent.c
@@ -21,6 +21,7 @@
  */
 
 #include <math.h>
+#include <stdlib.h>
 #include <string.h>
 
 #include <compiz-core.h>
diff --git a/src/loginout/loginout.c b/src/loginout/loginout.c
index e2889d2..839f7b4 100644
--- a/src/loginout/loginout.c
+++ b/src/loginout/loginout.c
@@ -20,6 +20,7 @@
  */
 
 #include <compiz-core.h>
+#include <stdlib.h>
 
 #include "loginout_options.h"
 
diff --git a/src/mblur/mblur.c b/src/mblur/mblur.c
index 103cd32..4e15c6d 100644
--- a/src/mblur/mblur.c
+++ b/src/mblur/mblur.c
@@ -20,6 +20,7 @@
  */
 
 #include <math.h>
+#include <stdlib.h>
 
 #include <compiz-core.h>
 
diff --git a/src/reflex/reflex.c b/src/reflex/reflex.c
index 8c6ebc3..83a7d66 100644
--- a/src/reflex/reflex.c
+++ b/src/reflex/reflex.c
@@ -19,6 +19,7 @@
  *
  */
 #include <compiz-core.h>
+#include <stdlib.h>
 
 #include "reflex_options.h"
 
diff --git a/src/scalefilter/scalefilter.c b/src/scalefilter/scalefilter.c
index 55e2a96..c10c5d1 100644
--- a/src/scalefilter/scalefilter.c
+++ b/src/scalefilter/scalefilter.c
@@ -25,6 +25,7 @@
 
 #define _GNU_SOURCE
 #include <math.h>
+#include <stdlib.h>
 #include <string.h>
 #include <wchar.h>
 #include <locale.h>
diff --git a/src/shelf/shelf.c b/src/shelf/shelf.c
index cd17839..e4fd09c 100644
--- a/src/shelf/shelf.c
+++ b/src/shelf/shelf.c
@@ -33,6 +33,7 @@
 #include <X11/extensions/shape.h>
 #include <X11/cursorfont.h>
 #include <math.h>
+#include <stdlib.h>
 #include <string.h>
 #include "shelf_options.h"
 
diff --git a/src/showmouse/showmouse.c b/src/showmouse/showmouse.c
index fe972a2..32c3cb9 100644
--- a/src/showmouse/showmouse.c
+++ b/src/showmouse/showmouse.c
@@ -25,6 +25,7 @@
  */
 
 #include <math.h>
+#include <stdlib.h>
 #include <string.h>
 
 #include <compiz-core.h>
diff --git a/src/splash/splash.c b/src/splash/splash.c
index c72b9b0..986a3ec 100644
--- a/src/splash/splash.c
+++ b/src/splash/splash.c
@@ -20,6 +20,7 @@
  */
 
 #include <math.h>
+#include <stdlib.h>
 
 #include <compiz-core.h>
 #include <X11/Xatom.h>
diff --git a/src/trailfocus/trailfocus.c b/src/trailfocus/trailfocus.c
index ecfa84d..05c50f4 100644
--- a/src/trailfocus/trailfocus.c
+++ b/src/trailfocus/trailfocus.c
@@ -25,6 +25,7 @@
  *
  */
 
+#include <stdlib.h>
 #include <string.h>
 #include <compiz-core.h>
 #include "trailfocus_options.h"
diff --git a/src/vidcap/vidcap.c b/src/vidcap/vidcap.c
index 10157b2..a08126d 100644
--- a/src/vidcap/vidcap.c
+++ b/src/vidcap/vidcap.c
@@ -27,6 +27,7 @@
 
 #define _GNU_SOURCE /* For asprintf */
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
diff --git a/src/wallpaper/wallpaper.c b/src/wallpaper/wallpaper.c
index fd23b69..2c47fa7 100644
--- a/src/wallpaper/wallpaper.c
+++ b/src/wallpaper/wallpaper.c
@@ -23,6 +23,7 @@
  */
 
 #include <stdarg.h>
+#include <stdlib.h>
 #include <string.h>
 #include <math.h>
 #include <dirent.h>
diff --git a/src/widget/widget.c b/src/widget/widget.c
index ce7d4f0..6d146fa 100644
--- a/src/widget/widget.c
+++ b/src/widget/widget.c
@@ -26,6 +26,7 @@
  *
  */
 
+#include <stdlib.h>
 #include <string.h>
 #include <compiz-core.h>
 #include <X11/Xatom.h>
-- 
2.43.0

