From 74bd114bcc87c884250f871ca353f5e1f212583a Mon Sep 17 00:00:00 2001
From: alex <alex@infiniteadaptability.org>
Date: Mon, 2 Aug 2021 09:10:37 -0700
Subject: [PATCH] small changes to work with self-compiled libtorrent

---
 configure.ac         | 3 +--
 seederd/Makefile.am  | 1 +
 seederd/src/main.cpp | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 334bc01..d5352bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,8 +86,7 @@ AC_CHECK_HEADER_STDBOOL
 AC_TYPE_SIZE_T
 
 # Checks for library functions.
-AC_FUNC_MALLOC
-AC_CHECK_FUNCS([atexit mkdir strchr strpbrk strrchr])
+AC_CHECK_FUNCS([atexit malloc mkdir strchr strpbrk strrchr])
 
 AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory])
 
diff --git a/seederd/Makefile.am b/seederd/Makefile.am
index b5e4835..6cedb1b 100644
--- a/seederd/Makefile.am
+++ b/seederd/Makefile.am
@@ -1,5 +1,6 @@
 AM_CXXFLAGS = \
 	-DPREFIX=\"$(localstatedir)/seeder\" \
+	-DTORRENT_USE_OPENSSL \
 	-I$(builddir)/inc/ \
 	-I$(srcdir)/inc/
 
diff --git a/seederd/src/main.cpp b/seederd/src/main.cpp
index fcb8b38..3e05f72 100644
--- a/seederd/src/main.cpp
+++ b/seederd/src/main.cpp
@@ -77,7 +77,6 @@ int main(int argc, char **argv) try {
 			& ~(lt::alert::dht_notification
 			+ lt::alert::piece_progress_notification
 			+ lt::alert::block_progress_notification
-			+ lt::alert::stats_notification
 			+ lt::alert::session_log_notification
 			+ lt::alert::torrent_log_notification
 			+ lt::alert::peer_log_notification
-- 
2.39.5