From b6d807f76153fa487059c65cd15727704eadba8f Mon Sep 17 00:00:00 2001
From: Maxim Khon <fjoe@samodelkin.net>
Date: Wed, 3 Jul 2024 15:37:28 +0200
Subject: [PATCH] Add missing "#include <stddef.h>" to fix the build on macOS

... after 19d7684ca10f.

Prevents:
gateway.c:845:18: error: call to undeclared function 'offsetof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

Fixes SF#150.
---
 gateway.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gateway.c b/gateway.c
index f2cc2ee1..7b0412dd 100644
--- a/gateway.c
+++ b/gateway.c
@@ -37,6 +37,7 @@
 #include "config.h"
 
 #include <stdio.h>
+#include <stddef.h>
 #include <sys/types.h>
 
 #ifndef _WIN32
-- 
2.49.0