From bda0a97fea93993eaf3632103d01315fc3b8017d Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Wed, 13 Mar 2024 23:22:31 +0000 Subject: [PATCH] Socket: fix win32/aos3 build --- content/urldb.c | 5 ----- desktop/gui_factory.c | 3 +-- utils/inet.h | 5 +++++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/content/urldb.c b/content/urldb.c index 7352d67c3..881f76f6d 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -115,11 +115,6 @@ #include "content/content.h" #include "content/urldb.h" -#ifdef WITH_AMISSL -/* AmiSSL needs everything to be using bsdsocket directly to avoid conflicts */ -#include -#endif - /** * cookie entry. * diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c index c9dcd8b2b..d93508890 100644 --- a/desktop/gui_factory.c +++ b/desktop/gui_factory.c @@ -21,12 +21,11 @@ #include #include #include -#include -#include #include "utils/config.h" #include "utils/errors.h" #include "utils/file.h" +#include "utils/inet.h" #include "netsurf/bitmap.h" #include "content/hlcache.h" #include "content/backing_store.h" diff --git a/utils/inet.h b/utils/inet.h index da1798432..e385982c1 100644 --- a/utils/inet.h +++ b/utils/inet.h @@ -40,6 +40,11 @@ #include #include +#ifdef WITH_AMISSL +/* AmiSSL needs everything to be using bsdsocket directly to avoid conflicts */ +#include +#endif + #else #include