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
This commit is contained in:
Guido Falsi 2024-11-12 21:49:57 +01:00
parent 42321316b2
commit d450feb023

View file

@ -0,0 +1,13 @@
--- 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];