mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Update libbacktrace to dedbe13fda.
This commit is contained in:
committed by
Bartosz Taudul
parent
a3bfbab6bd
commit
8bacc7a91c
@@ -1,5 +1,5 @@
|
||||
/* mmapio.c -- File views using mmap.
|
||||
Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2021 Free Software Foundation, Inc.
|
||||
Written by Ian Lance Taylor, Google.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
@@ -40,6 +40,10 @@ POSSIBILITY OF SUCH DAMAGE. */
|
||||
#include "backtrace.hpp"
|
||||
#include "internal.hpp"
|
||||
|
||||
#ifndef HAVE_DECL_GETPAGESIZE
|
||||
extern int getpagesize (void);
|
||||
#endif
|
||||
|
||||
#ifndef MAP_FAILED
|
||||
#define MAP_FAILED ((void *)-1)
|
||||
#endif
|
||||
@@ -101,10 +105,10 @@ backtrace_release_view (struct backtrace_state *state ATTRIBUTE_UNUSED,
|
||||
union {
|
||||
const void *cv;
|
||||
void *v;
|
||||
};
|
||||
} cc;
|
||||
|
||||
cv = view->base;
|
||||
if (munmap (v, view->len) < 0)
|
||||
cc.cv = view->base;
|
||||
if (munmap (cc.v, view->len) < 0)
|
||||
error_callback (data, "munmap", errno);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user