diff --git a/Makefile.common b/Makefile.common index fced34d6fa..e3222a890d 100644 --- a/Makefile.common +++ b/Makefile.common @@ -399,6 +399,7 @@ ifneq ($(C89_BUILD), 1) HAVE_GTKPLUS = 0 ifeq ($(HAVE_SSL), 1) +ifeq ($(HAVE_NETWORKING), 1) DEFINES += -DHAVE_SSL ifeq ($(DEBUG), 1) @@ -485,6 +486,7 @@ OBJS_TLS = deps/mbedtls/debug.o \ OBJ += $(OBJS_TLS_CRYPTO) $(OBJS_TLS_X509) $(OBJS_TLS) endif endif +endif # Miscellaneous diff --git a/griffin/griffin.c b/griffin/griffin.c index db3870ff81..f1d699287f 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -1426,6 +1426,7 @@ HTTP SERVER SSL ============================================================ */ #if defined(HAVE_SSL) +#if defined(HAVE_NETWORKING) #include "../deps/mbedtls/aes.c" #include "../deps/mbedtls/aesni.c" #include "../deps/mbedtls/arc4.c" @@ -1502,3 +1503,4 @@ SSL #include "../libretro-common/net/net_socket_ssl.c" #endif +#endif