44 lines
1.1 KiB
Diff
44 lines
1.1 KiB
Diff
diff --git a/content/fetch.c b/content/fetch.c
|
|
index f066ea40c..a804002c4 100644
|
|
--- a/content/fetch.c
|
|
+++ b/content/fetch.c
|
|
@@ -49,6 +49,9 @@
|
|
#include "content/fetchers/data.h"
|
|
#include "content/fetchers/file/file.h"
|
|
#include "javascript/fetcher.h"
|
|
+#ifdef WITH_MONTAUK_FETCHER
|
|
+#include "content/fetchers/montauk.h"
|
|
+#endif
|
|
#include "content/urldb.h"
|
|
|
|
/** The maximum number of fetchers that can be added */
|
|
@@ -294,6 +297,13 @@ nserror fetcher_init(void)
|
|
}
|
|
#endif
|
|
|
|
+#ifdef WITH_MONTAUK_FETCHER
|
|
+ ret = fetch_montauk_register();
|
|
+ if (ret != NSERROR_OK) {
|
|
+ return ret;
|
|
+ }
|
|
+#endif
|
|
+
|
|
ret = fetch_data_register();
|
|
if (ret != NSERROR_OK) {
|
|
return ret;
|
|
diff --git a/content/fetchers/Makefile b/content/fetchers/Makefile
|
|
index f7752918a..74eddf5a3 100644
|
|
--- a/content/fetchers/Makefile
|
|
+++ b/content/fetchers/Makefile
|
|
@@ -4,6 +4,10 @@ S_FETCHERS_YES := data.c resource.c
|
|
S_FETCHERS_NO :=
|
|
S_FETCHERS_$(NETSURF_USE_CURL) += curl.c
|
|
|
|
+ifeq ($(NETSURF_USE_MONTAUK),YES)
|
|
+S_FETCHERS_YES += montauk.c
|
|
+endif
|
|
+
|
|
S_FETCHERS := $(addprefix fetchers/,$(S_FETCHERS_YES))
|
|
|
|
# about fetcher
|