12345678910111213141516171819202122232425262728 |
- From 99c8b91937329b9779e3f035f05f432516b82cee Mon Sep 17 00:00:00 2001
- From: JeremyRand <biolizard89@gmail.com>
- Date: Sun, 7 Oct 2018 00:46:55 +0000
- Subject: [PATCH] Backport missing includes for jsnativestack from ESR 60
- This fixes a compiler error for GNU/Linux targets involving undefined
- syscall and getpid functions.
- ---
- js/src/jsnativestack.cpp | 2 ++
- 1 file changed, 2 insertions(+)
- diff --git a/js/src/jsnativestack.cpp b/js/src/jsnativestack.cpp
- index 0f4dae1..90b8c7c 100644
- --- a/js/src/jsnativestack.cpp
- +++ b/js/src/jsnativestack.cpp
- @@ -63,6 +63,8 @@ js::GetNativeStackBaseImpl()
-
- # include <dlfcn.h>
- # include <sys/syscall.h>
- +# include <sys/types.h>
- +# include <unistd.h>
- static pid_t
- gettid()
- {
- --
- 2.1.4
|