shithub: tlsclient

Download patch

ref: fbc5fd4c65da6fb2050b257b5587b184fe35cf64
parent: b1eccd55cfaa8752a3584948451ab75b44a42b9b
author: Jacob Moody <moody@posixcafe.org>
date: Mon Oct 16 05:56:51 EDT 2023

fix build on debian and tidy OPENSSL_API_COMPAT

--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@
 default: tlsclient
 
 tlsclient: cpu.$O $(LIBS)
-	$(CC) `pkg-config $(OPENSSL) --libs` $(LDFLAGS) -o $@ cpu.$O $(LIBS)
+	$(CC) -o $@ cpu.$O $(LIBS) `pkg-config $(OPENSSL) --libs` $(LDFLAGS)
 
 login_-dp9ik: bsd.$O $(LIBS)
 	$(CC) -o $@ bsd.$O $(LIBS)
--- a/cpu.c
+++ b/cpu.c
@@ -4,7 +4,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <signal.h>
-#define OPENSSL_API_COMPAT 0x10000000L
+#define OPENSSL_API_COMPAT 0x10100000L
 #include <openssl/ssl.h>
 
 #include <u.h>