ports/net/usockets/files/patch-tests_sni__test.c
Yuri Victorovich cfdad59b52 net/usockets: Fix build
-fPIC was missing in some cases, and this was somehow flying on 14
but was failing on 15.

Reported by:	fallout
2024-01-21 23:36:54 -08:00

15 lines
400 B
C

--- tests/sni_test.c.orig 2024-01-22 07:32:06 UTC
+++ tests/sni_test.c
@@ -1,10 +1,10 @@
-extern "C" {
+//extern "C" {
void *sni_new();
void sni_free(void *sni, void (*cb)(void *user));
int sni_add(void *sni, const char *hostname, void *user);
void *sni_remove(void *sni, const char *hostname);
void *sni_find(void *sni, const char *hostname);
-}
+//}
#include <assert.h>
#include <stdio.h>