]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
examples/svgtiny_display_x11.c: add missing stdlib.h include
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 6 Aug 2023 00:36:04 +0000 (20:36 -0400)
committerMichael Drake <tlsa@netsurf-browser.org>
Wed, 9 Aug 2023 20:15:34 +0000 (21:15 +0100)
This file uses malloc(), free(), and exit() -- all of which are
defined in stdlib.h. GCC seems unhappy about the situation, so we now
include it. This allows the file to be compiled once again.

examples/svgtiny_display_x11.c

index c8bafd5a9b8fe5f6ce7ef7381f3b025d849793ff..6758befb1ce8c9bf612c4f96f205c1f8a5265c16 100644 (file)
@@ -23,6 +23,7 @@
 #include <math.h>
 #include <stdbool.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>