ports/deskutils/calibre/files/patch-src_calibre_utils_certgen.c
Guido Falsi d450feb023 deskutils/calibre: Fix build on 13.3
Recent changes depend on an OpenSSL 3.x define. Just define it for older releases.

Reported by:	pkg-fallout
MFH:		2024Q4
2024-11-12 21:52:33 +01:00

13 lines
359 B
C

--- src/calibre/utils/certgen.c.orig 2024-11-08 03:00:49 UTC
+++ src/calibre/utils/certgen.c
@@ -22,6 +22,10 @@
#include <openssl/err.h>
#include <openssl/conf.h>
+#if __FreeBSD_version < 1400092
+#define X509_REQ_VERSION_1 1
+#endif
+
static PyObject*
set_error_with_detail(const char *where, const char* detail) {
char *suffix = NULL, buf[1024];