jsnativestack_unistd_armhf.patch 733 B

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