aboutsummaryrefslogtreecommitdiff
path: root/lang/hermes/files/patch-lib_VM_Instrumentation_ProcessStats.cpp
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2020-09-11 08:04:14 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2020-09-11 08:04:14 +0000
commitf05a6f94a36b3d2d5e77a23e4f30139477cbeda9 (patch)
tree2ef04902904e0e13482380c966642cdf70d05b53 /lang/hermes/files/patch-lib_VM_Instrumentation_ProcessStats.cpp
parent96d7c51d8eb54c5cf784938ab6c85994588372f1 (diff)
downloadports-f05a6f94a36b3d2d5e77a23e4f30139477cbeda9.tar.gz
ports-f05a6f94a36b3d2d5e77a23e4f30139477cbeda9.zip
New port: lang/hermes: JavaScript engine
Notes
Notes: svn path=/head/; revision=548229
Diffstat (limited to 'lang/hermes/files/patch-lib_VM_Instrumentation_ProcessStats.cpp')
-rw-r--r--lang/hermes/files/patch-lib_VM_Instrumentation_ProcessStats.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/hermes/files/patch-lib_VM_Instrumentation_ProcessStats.cpp b/lang/hermes/files/patch-lib_VM_Instrumentation_ProcessStats.cpp
new file mode 100644
index 000000000000..584ac722c250
--- /dev/null
+++ b/lang/hermes/files/patch-lib_VM_Instrumentation_ProcessStats.cpp
@@ -0,0 +1,11 @@
+--- lib/VM/Instrumentation/ProcessStats.cpp.orig 2020-09-11 02:29:31 UTC
++++ lib/VM/Instrumentation/ProcessStats.cpp
+@@ -69,6 +69,8 @@ ProcessStats::Info getProcessStatSnapshot() {
+ va *= PS / 1024;
+ #elif defined(__EMSCRIPTEN__)
+ rss = va = 0;
++#elif defined(__FreeBSD__)
++ rss = va = 0; // TODO implement getProcessStatSnapshot
+ #else
+ #error "Unsupported platform"
+ #endif