aboutsummaryrefslogtreecommitdiffstats
path: root/src/prof.c
diff options
context:
space:
mode:
authorrustyx <me@rustyx.org>2016-01-30 14:51:16 +0100
committerJason Evans <jasone@canonware.com>2016-02-20 10:52:53 -0800
commit7f283980f00f0543e97f46567fbe5bdd4d732724 (patch)
tree61a906956d0f4a07c24440f378cb887575c5fd9b /src/prof.c
parent90c7269c0588bd6d49bf27ba05a261744ad97165 (diff)
downloadplatform_external_jemalloc_new-7f283980f00f0543e97f46567fbe5bdd4d732724.tar.gz
platform_external_jemalloc_new-7f283980f00f0543e97f46567fbe5bdd4d732724.tar.bz2
platform_external_jemalloc_new-7f283980f00f0543e97f46567fbe5bdd4d732724.zip
getpid() fix for Win32
Diffstat (limited to 'src/prof.c')
-rw-r--r--src/prof.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/prof.c b/src/prof.c
index 31f5e601..3abb38e2 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -1384,6 +1384,8 @@ prof_dump_maps(bool propagate_err)
cassert(config_prof);
#ifdef __FreeBSD__
mfd = prof_open_maps("/proc/curproc/map");
+#elif defined(_WIN32)
+ mfd = -1; // Not implemented
#else
{
int pid = getpid();