feat: ports - netsurf with the monkey frontend
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Ae69wJS7sueQMUwNxV3nX
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Stub <curl/curl.h> for the MontaukOS NetSurf port.
|
||||
*
|
||||
* This is NOT a curl implementation and nothing here can perform a fetch.
|
||||
*
|
||||
* NetSurf is built with NETSURF_USE_CURL=NO, but that configuration is not
|
||||
* well exercised upstream: content/fetch.c includes content/fetchers/curl.h
|
||||
* unconditionally and only guards the *use* of fetch_curl_register() behind
|
||||
* #ifdef WITH_CURL. That header in turn includes <curl/curl.h> and declares
|
||||
* `extern CURLM *fetch_curl_multi`, so the type must exist for the
|
||||
* translation unit to compile even though no curl code is built.
|
||||
*
|
||||
* Supplying this stub keeps the port free of patches against upstream. The
|
||||
* alternative -- guarding the include in content/fetch.c -- is a one-line
|
||||
* change but starts a patch series that every future NetSurf update has to
|
||||
* be rebased onto.
|
||||
*
|
||||
* When fetch_montauk lands it registers itself the same way fetch_curl would,
|
||||
* and this file stays exactly as it is.
|
||||
*/
|
||||
#ifndef _MONTAUK_COMPAT_CURL_CURL_H_
|
||||
#define _MONTAUK_COMPAT_CURL_CURL_H_
|
||||
|
||||
/* Opaque: only ever named in a declaration that is never defined or used. */
|
||||
typedef void CURLM;
|
||||
typedef void CURL;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user