forked from webodf/WebODF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJSCoverage.patch
25 lines (24 loc) · 924 Bytes
/
JSCoverage.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -Naurw jscoverage-0.5.1-orig/js/Makefile.in jscoverage-0.5.1/js/Makefile.in
--- jscoverage-0.5.1-orig/js/Makefile.in 2010-09-23 14:00:00.000000000 +0200
+++ jscoverage-0.5.1/js/Makefile.in 2019-02-07 23:57:30.292080849 +0100
@@ -431,6 +431,7 @@
NSPR_STATIC_PATH = $(DIST)/lib
endif
+CXXFLAGS += -fpermissive
ifdef MOZ_SHARK
CFLAGS += -F/System/Library/PrivateFrameworks
CXXFLAGS += -F/System/Library/PrivateFrameworks
diff -Naurw jscoverage-0.5.1-orig/util.c jscoverage-0.5.1/util.c
--- jscoverage-0.5.1-orig/util.c 2010-09-23 14:00:00.000000000 +0200
+++ jscoverage-0.5.1/util.c 2019-02-07 23:58:18.369297990 +0100
@@ -478,6 +478,10 @@
p->next = head;
head = p;
}
+ else if (S_ISDIR(buf.st_mode)) {
+ head = recursive_dir_list(root, entry_wrt_root, head);
+ free(entry_wrt_root);
+ }
else {
fatal("refusing to follow symbolic link: %s", entry);
}