Add curl support to naett on FreeBSD. (Unbreaks build on dirty/live systems where curl is installed and passes find_package() check).

This commit is contained in:
Kevin Reinholz committed 2026-10-15 17:18:36 -07:00
1 parent 75e89175ee
commit aa2a55c883
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
// PPSSPP addition - not part of upstream naett. See naett_curl.h.
#if __linux__ && !__ANDROID__
#if (__linux__ || defined(__FreeBSD__)) && !__ANDROID__
#define NAETT_CURL_INTERNAL
#include "naett_curl.h"
+5 -1
View File
@@ -27,6 +27,10 @@
#include <curl/curl.h>
#endif
#ifdef __FreeBSD__
#include <curl/curl.h>
#endif
#if __ANDROID__
#include <jni.h>
#include <pthread.h>
@@ -102,7 +106,7 @@ typedef struct {
pthread_t workerThread;
int closeRequested;
#endif
#if __LINUX__
#if __LINUX__ || defined(__FreeBSD__)
struct curl_slist* headerList;
#endif
#if __WINDOWS__
+1 -1
View File
@@ -1,6 +1,6 @@
#include "naett_internal.h"
#if __linux__ && !__ANDROID__
#if (__linux__ || defined(__FreeBSD__)) && !__ANDROID__
// PPSSPP: libcurl is dlopen'd rather than linked, see naett_curl.h. This header stands in
// for <curl/curl.h> and redirects the curl_* calls below through function pointers.