Fix dependencies and lacking flock
This commit is contained in:
parent
c572e98166
commit
d66ead3160
1
ab.c
1
ab.c
|
@ -118,7 +118,6 @@ G_MODULE_EXPORT void webkit_web_extension_initialize_with_user_data(
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include "ephy-uri-tester.h"
|
|
||||||
#include "ephy-uri-tester.c"
|
#include "ephy-uri-tester.c"
|
||||||
|
|
||||||
static EphyUriTester *tester = NULL;
|
static EphyUriTester *tester = NULL;
|
||||||
|
|
|
@ -34,12 +34,12 @@
|
||||||
#include "ephy-prefs.h"
|
#include "ephy-prefs.h"
|
||||||
#include "ephy-settings.h"
|
#include "ephy-settings.h"
|
||||||
#include "ephy-uri-tester-shared.h"
|
#include "ephy-uri-tester-shared.h"
|
||||||
*/
|
|
||||||
|
|
||||||
#include <gio/gio.h>
|
#include <gio/gio.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <libsoup/soup.h>
|
#include <libsoup/soup.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
*/
|
||||||
|
|
||||||
#define SIGNATURE_SIZE 8
|
#define SIGNATURE_SIZE 8
|
||||||
|
|
||||||
|
|
2
makefile
2
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
|
wyebab: ab.c ephy-uri-tester.c ephy-uri-tester.h librun.o makefile
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< librun.o \
|
$(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)\" \
|
-DEXTENSION_DIR=\"$(EXTENSION_DIR)\" \
|
||||||
$(DDEBUG) $(DAPPNAME)
|
$(DDEBUG) $(DAPPNAME)
|
||||||
|
|
||||||
|
|
|
@ -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);
|
int lock = open(path, O_RDONLY | O_CREAT, S_IRUSR);
|
||||||
g_free(path);
|
g_free(path);
|
||||||
|
flock(lock, LOCK_EX);
|
||||||
|
|
||||||
//retry in single proc
|
//retry in single proc
|
||||||
if (!ipcsend(exe, INPUT, type, caller, req))
|
if (!ipcsend(exe, INPUT, type, caller, req))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user