Fix dependencies and lacking flock

This commit is contained in:
jun7 2018-05-30 01:00:21 +09:00
parent c572e98166
commit d66ead3160
4 changed files with 3 additions and 3 deletions

1
ab.c
View File

@ -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;

View File

@ -34,12 +34,12 @@
#include "ephy-prefs.h"
#include "ephy-settings.h"
#include "ephy-uri-tester-shared.h"
*/
#include <gio/gio.h>
#include <glib/gstdio.h>
#include <libsoup/soup.h>
#include <string.h>
*/
#define SIGNATURE_SIZE 8

View File

@ -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)

View File

@ -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))