Skip to content

Commit

Permalink
fix crashpad unable to build with GLIBC >= 2.27 in C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Nov 18, 2023
1 parent de255b2 commit 355cde2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thirdparty/google_crashpad_client/compat/linux/sys/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
extern "C" {
#endif

int memfd_create(const char* name, unsigned int flags);
int memfd_create(const char* name, unsigned int flags) __THROW;

#ifdef __cplusplus
} // extern "C"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

extern "C" {

int memfd_create(const char* name, unsigned int flags) {
int memfd_create(const char* name, unsigned int flags) __THROW {
static const crashpad::NoCfiIcall<decltype(memfd_create)*> next_memfd_create(
dlsym(RTLD_NEXT, "memfd_create"));
return next_memfd_create ? next_memfd_create(name, flags)
Expand Down

0 comments on commit 355cde2

Please sign in to comment.