From b53276262b91521c96fae1b21aa906b8fbae9e9b Mon Sep 17 00:00:00 2001
From: Klaus Ethgen <Klaus@Ethgen.ch>
Date: Sun, 28 Jun 2026 14:24:15 +0100
Subject: [PATCH] Changes to compile the source

---
 include/syncmgr.h     | 2 +-
 include/thread_pool.h | 5 ++---
 src/Makefile.am       | 4 ++--
 src/Makefile.in       | 4 ++--
 4 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/include/syncmgr.h b/include/syncmgr.h
index 4caf6bd..07b77ed 100644
--- a/include/syncmgr.h
+++ b/include/syncmgr.h
@@ -73,7 +73,7 @@ int min(int x, int y);
 
 int send_startup_sync(peer_t *peer, startup_sync_t *sync);
 int send_oper_sync(peer_t *peer, oper_sync_t *sync);
-int force_peer_aggregate();
+int force_peer_aggregate(peer_t *peer);
 void send_filters(peer_t *peer);
 
 void *recv_syncs(void *arg);
diff --git a/include/thread_pool.h b/include/thread_pool.h
index 6678e6f..07638ce 100644
--- a/include/thread_pool.h
+++ b/include/thread_pool.h
@@ -68,7 +68,7 @@ typedef struct watchdog_s
 typedef struct
 {
 	void *state;
-	int (*cleanup) ();
+	int (*cleanup) (void *state);
 	watchdog_t watchdog;
 } thread_ctx_t;
 
@@ -109,8 +109,7 @@ typedef struct edict_message_s
 int submit_job(thread_pool_t *pool, edict_t *edict);
 thread_pool_t *create_thread_pool(const char *name, int (*routine) (thread_pool_t *, thread_ctx_t *,
 	edict_t *), pool_limits_t *limits, void *arg);
-edict_t *edict_get();
-edict_t *edict_get();
+edict_t *edict_get(bool forget);
 void send_result(edict_t *edict, void *result);
 void edict_unlink(edict_t *edict);
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 07fb3ea..e1cb315 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -11,11 +11,11 @@ grossd_SOURCES = sha256.c bloom.c utils.c srvutils.c worker.c bloommgr.c gross.c
 EXTRA_grossd_SOURCES = check_dnsbl.c worker_milter.c
 grossd_LDFLAGS = @LDFLAGS@ proto_sjsms.o
 grossd_LDADD = @DNSBLSOURCES@ @MILTERSOURCES@
-grossd_DEPENDENCIES = @DNSBLSOURCES@ @MILTERSOURCES@ proto_sjsms.c
+grossd_DEPENDENCIES = @DNSBLSOURCES@ @MILTERSOURCES@ proto_sjsms.o
 
 gclient_SOURCES = gclient.c utils.c client_postfix.c client_sjsms.c
 gclient_LDFLAGS = @LDFLAGS@ proto_sjsms.o
-gclient_DEPENDENCIES = proto_sjsms.c
+gclient_DEPENDENCIES = proto_sjsms.o
 
 grosscheck_la_SOURCES = grosscheck.c proto_sjsms.c
 grosscheck_la_LDFLAGS = -module -avoid-version @STATIC_GLIBC_FLAG@
diff --git a/src/Makefile.in b/src/Makefile.in
index 2e9d6dc..4a51f4a 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -232,10 +232,10 @@ grossd_SOURCES = sha256.c bloom.c utils.c srvutils.c worker.c bloommgr.c gross.c
 EXTRA_grossd_SOURCES = check_dnsbl.c worker_milter.c
 grossd_LDFLAGS = @LDFLAGS@ proto_sjsms.o
 grossd_LDADD = @DNSBLSOURCES@ @MILTERSOURCES@
-grossd_DEPENDENCIES = @DNSBLSOURCES@ @MILTERSOURCES@ proto_sjsms.c
+grossd_DEPENDENCIES = @DNSBLSOURCES@ @MILTERSOURCES@ proto_sjsms.o
 gclient_SOURCES = gclient.c utils.c client_postfix.c client_sjsms.c
 gclient_LDFLAGS = @LDFLAGS@ proto_sjsms.o
-gclient_DEPENDENCIES = proto_sjsms.c
+gclient_DEPENDENCIES = proto_sjsms.o
 grosscheck_la_SOURCES = grosscheck.c proto_sjsms.c
 grosscheck_la_LDFLAGS = -module -avoid-version @STATIC_GLIBC_FLAG@
 bloom_SOURCES = sha256.c bloom-test.c bloom.c srvutils.c utils.c
-- 
2.53.0

