Index: configure
--- configure.orig	2024-12-30 12:29:59.000000000 +0100
+++ configure	2025-01-01 16:31:26.081735000 +0100
@@ -12773,7 +12773,7 @@
 		  esac
 		  shift
 	  done
-	  CPPFLAGS="$SSL_CFLAGS $CPPFLAGS"
+	  CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
 	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: From pkg-config: $SSL_LIBS" >&5
 printf "%s\n" "$as_me: From pkg-config: $SSL_LIBS" >&6;}
 
Index: socket.c
--- socket.c.orig	2024-11-05 22:57:00.000000000 +0100
+++ socket.c	2025-01-01 16:28:19.044025000 +0100
@@ -16,6 +16,7 @@
 #include <string.h>
 #include <strings.h>
 #include <ctype.h> /* isspace() */
+#include <sys/time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>
