aboutsummaryrefslogtreecommitdiff
path: root/dep/jemalloc/src/prof.c
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2014-06-19 22:57:44 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2014-06-19 22:57:44 +0200
commit910f32d48ddbae2ec8f2e85b678ade60ff04c8fa (patch)
tree6f3a8732e335240bb26c9b5fdca0a9733090657a /dep/jemalloc/src/prof.c
parent34572492dd1394dbeaf19bb697a7af8cbf0b6ef7 (diff)
parent57069b393d7698bc0f860ad1b2d0b16785f9e8e0 (diff)
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/game/Entities/Player/Player.cpp src/server/game/Entities/Unit/Unit.cpp
Diffstat (limited to 'dep/jemalloc/src/prof.c')
-rw-r--r--dep/jemalloc/src/prof.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dep/jemalloc/src/prof.c b/dep/jemalloc/src/prof.c
index 1d8ccbd60ae..7722b7b4373 100644
--- a/dep/jemalloc/src/prof.c
+++ b/dep/jemalloc/src/prof.c
@@ -935,9 +935,12 @@ prof_dump_maps(bool propagate_err)
char filename[PATH_MAX + 1];
cassert(config_prof);
-
+#ifdef __FreeBSD__
+ malloc_snprintf(filename, sizeof(filename), "/proc/curproc/map");
+#else
malloc_snprintf(filename, sizeof(filename), "/proc/%d/maps",
(int)getpid());
+#endif
mfd = open(filename, O_RDONLY);
if (mfd != -1) {
ssize_t nread;