File castget-stdlib.diff of Package castget
From https://github.com/mlj/castget/commit/5bce05882ca34b3fd4e1c3667a3e8336c1f3ed2f
(adjusted to match 2.0.1)
Fixes https://github.com/mlj/castget/issues/65
commit 5bce05882ca34b3fd4e1c3667a3e8336c1f3ed2f
Author: Marius L. Jøhndal <mariuslj@ifi.uio.no>
Date: Mon Jan 20 22:37:40 2025 +0000
Include stdlib.h for strtol() (#65).
Index: castget-2.0.1/src/libxmlutil.c
===================================================================
--- castget-2.0.1.orig/src/libxmlutil.c 2017-06-15 20:20:38.000000000 +0200
+++ castget-2.0.1/src/libxmlutil.c 2025-12-04 20:28:13.774943177 +0100
@@ -21,6 +21,7 @@
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#include <stdlib.h>
#include <string.h>
#include "libxmlutil.h"