Re: [dev] [surf] [PATCH] Add NODISKCACHE option to disable the disk cache at compile-time
Hi,
>
> It looks like you can use SOUP_CHECK_VERSION(2, 34, 0) to test for the version that supports disk cache. May you please try your patch with that code, and send me an updated patch? I will then test on my own system with support, and verify that the positive case also works.
I compiled it in jessie with this patch:
diff --git a/config.mk b/config.mk
index e49fa24..9321e4b 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -10,8 +10,8 @@ MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
-GTKINC = `pkg-config --cflags gtk+-2.0 webkit-1.0`
-GTKLIB = `pkg-config --libs gtk+-2.0 webkit-1.0`
+GTKINC = `pkg-config --cflags gtk+-2.0 webkit-1.0 libsoup-2.4`
+GTKLIB = `pkg-config --libs gtk+-2.0 webkit-1.0 libsoup-2.4`
# includes and libs
INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
diff --git a/surf.c b/surf.c
index 87c10ef..fa3a3c5 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -3,6 +3,10 @@
* To understand surf, start reading main().
*/
+#define LIBSOUP_USE_UNSTABLE_REQUEST_API
+
+#define _XOPEN_SOURCE 500
+
#include <signal.h>
#include <X11/X.h>
#include <X11/Xatom.h>
_AT_@ -22,6 +26,7 @@
#include <JavaScriptCore/JavaScript.h>
#include <sys/file.h>
#include <libgen.h>
+#include <libsoup/soup-cache.h>
#include <stdarg.h>
#include <regex.h>
I hope it can help you.
Regards,
Received on Tue Apr 14 2015 - 07:34:01 CEST
This archive was generated by hypermail 2.3.0
: Tue Apr 14 2015 - 07:36:08 CEST