diff --git a/ab.c b/ab.c index 7238ebc..7423224 100644 --- a/ab.c +++ b/ab.c @@ -118,7 +118,6 @@ G_MODULE_EXPORT void webkit_web_extension_initialize_with_user_data( #else -#include "ephy-uri-tester.h" #include "ephy-uri-tester.c" static EphyUriTester *tester = NULL; diff --git a/ephy-uri-tester.c b/ephy-uri-tester.c index 3d7d03c..25d5956 100644 --- a/ephy-uri-tester.c +++ b/ephy-uri-tester.c @@ -34,12 +34,12 @@ #include "ephy-prefs.h" #include "ephy-settings.h" #include "ephy-uri-tester-shared.h" -*/ #include #include #include #include +*/ #define SIGNATURE_SIZE 8 diff --git a/makefile b/makefile index be988a8..29c6423 100644 --- a/makefile +++ b/makefile @@ -18,7 +18,7 @@ adblock.so: ab.c ephy-uri-tester.c ephy-uri-tester.h librun.o makefile wyebab: ab.c ephy-uri-tester.c ephy-uri-tester.h librun.o makefile $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< librun.o \ - `pkg-config --cflags --libs glib-2.0 libsoup-2.4` \ + `pkg-config --cflags --libs glib-2.0 gio-2.0` \ -DEXTENSION_DIR=\"$(EXTENSION_DIR)\" \ $(DDEBUG) $(DAPPNAME) diff --git a/wyebrun.c b/wyebrun.c index 31a8052..7a250aa 100644 --- a/wyebrun.c +++ b/wyebrun.c @@ -307,6 +307,7 @@ static char *request(char *exe, Com type, char *caller, char *req) int lock = open(path, O_RDONLY | O_CREAT, S_IRUSR); g_free(path); + flock(lock, LOCK_EX); //retry in single proc if (!ipcsend(exe, INPUT, type, caller, req))