File:  [cvs.NetBSD.org] / pkgsrc / textproc / cjose / patches / Attic / patch-src_concatkdf.c
Revision 1.2: download - view: text, annotated - select for diffs
Tue Aug 22 11:50:02 2023 UTC (14 months, 2 weeks ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2, HEAD
cjose: clean up

$NetBSD$

Fix build on NetBSD.

--- src/concatkdf.c.orig	2023-08-22 12:18:03.202602223 +0200
+++ src/concatkdf.c	2023-08-22 12:17:49.008381386 +0200
@@ -12,8 +12,12 @@
 #include <malloc.h>
 #else
 #include <arpa/inet.h>
+#ifdef __NetBSD__
+#include <stdlib.h>
+#else
 #include <alloca.h>
 #endif
+#endif
 #include <openssl/evp.h>
 #include <string.h>
 #include <cjose/base64.h>

CVSweb <webmaster@jp.NetBSD.org>