summaryrefslogtreecommitdiff
blob: 8b0cbacc51f7187c1f5c126242532be3be6286fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
https://bugs.gentoo.org/924395

From 9f2bc8d4278421e2a05598c89f22cdf34929ec66 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon@josefsson.org>
Date: Sun, 31 Dec 2023 15:42:00 +0100
Subject: [PATCH] Fix build failure noticed on ArchLinux-xmlsec.

---
 NEWS                | 2 ++
 libpskc/container.c | 1 +
 libpskc/parser.c    | 1 +
 3 files changed, 4 insertions(+)

diff --git a/libpskc/container.c b/libpskc/container.c
index 639babc..bda2266 100644
--- a/libpskc/container.c
+++ b/libpskc/container.c
@@ -24,6 +24,7 @@
 #include <pskc/pskc.h>
 
 #include <string.h>		/* memset */
+#include <stdlib.h>		/* realloc */
 
 #define INTERNAL_NEED_PSKC_STRUCT
 #define INTERNAL_NEED_PSKC_KEY_STRUCT
diff --git a/libpskc/parser.c b/libpskc/parser.c
index b1f3245..9a1e925 100644
--- a/libpskc/parser.c
+++ b/libpskc/parser.c
@@ -28,6 +28,7 @@
 #include "internal.h"
 
 #include <string.h>
+#include <stdlib.h>		/* malloc, strtoul */
 #include "base64.h"
 
 static void
-- 
2.43.0