--- a/lib/tls/mbedtls/mbedtls-server.c
+++ b/lib/tls/mbedtls/mbedtls-server.c
@@ -264,11 +264,7 @@ lws_tls_server_new_nonblocking(struct lw
 	return 0;
 }
 
-#if defined(LWS_AMAZON_RTOS)
 enum lws_ssl_capable_status
-#else
-int
-#endif
 lws_tls_server_abort_connection(struct lws *wsi)
 {
 	if (wsi->tls.use_ssl)
