summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2020-11-16 07:15:29 -0600
committerMoonchild <moonchild@palemoon.org>2020-11-19 22:44:09 +0000
commit53ca366d2b34f237e42f8108d7a71586b5285e44 (patch)
treee341d5307cdc96cbd1ac0a788c45ac13228d4ac5
parent14f7bec5239d22befe975c143f8cec045640c667 (diff)
downloadUXP-53ca366d2b34f237e42f8108d7a71586b5285e44.tar
UXP-53ca366d2b34f237e42f8108d7a71586b5285e44.tar.gz
UXP-53ca366d2b34f237e42f8108d7a71586b5285e44.tar.lz
UXP-53ca366d2b34f237e42f8108d7a71586b5285e44.tar.xz
UXP-53ca366d2b34f237e42f8108d7a71586b5285e44.zip
Issue #1667 - Part 1: Define _pthread_self if it is not already defined in jemalloc
-rw-r--r--memory/mozjemalloc/jemalloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/memory/mozjemalloc/jemalloc.c b/memory/mozjemalloc/jemalloc.c
index 86864e1cd..0eb5241c7 100644
--- a/memory/mozjemalloc/jemalloc.c
+++ b/memory/mozjemalloc/jemalloc.c
@@ -302,6 +302,9 @@ typedef long ssize_t;
#include <mach/mach_init.h>
#include <mach/vm_map.h>
#include <malloc/malloc.h>
+#ifndef _pthread_self
+#define _pthread_self() pthread_self()
+#endif
#endif
#endif