summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2020-11-16 07:15:29 -0600
committerBrian Smith <brian@dbsoft.org>2020-11-16 07:15:29 -0600
commitb6d909ad17c44157c9cbea90078727414f759253 (patch)
treecb46f0a79bcc62de6ccb2edb0e52d969894aeec6
parent6bc5748b00efcd5a30b5736a2f89ef21c9362869 (diff)
downloadUXP-b6d909ad17c44157c9cbea90078727414f759253.tar
UXP-b6d909ad17c44157c9cbea90078727414f759253.tar.gz
UXP-b6d909ad17c44157c9cbea90078727414f759253.tar.lz
UXP-b6d909ad17c44157c9cbea90078727414f759253.tar.xz
UXP-b6d909ad17c44157c9cbea90078727414f759253.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