From 825bd6e8893703769b0172c762a4cfdebe2543cc Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Wed, 20 Oct 2021 14:34:28 -0400 Subject: [PATCH] Support hdf5debug.c compilation with Emscripten execinfo.h is not available. --- libhdf5/hdf5debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libhdf5/hdf5debug.c b/libhdf5/hdf5debug.c index 3a497d2f9c..71e5bc122b 100644 --- a/libhdf5/hdf5debug.c +++ b/libhdf5/hdf5debug.c @@ -5,7 +5,7 @@ #include "config.h" #include #include -#if !defined _WIN32 && !defined __CYGWIN__ +#if !defined _WIN32 && !defined __CYGWIN__ && !defined __EMSCRIPTEN__ #include #endif @@ -16,7 +16,7 @@ #define STSIZE 1000 #ifdef H5BACKTRACE -# if !defined _WIN32 && !defined __CYGWIN__ +# if !defined _WIN32 && !defined __CYGWIN__ && !defined __EMSCRIPTEN__ static void* stacktrace[STSIZE]; # endif #endif @@ -25,7 +25,7 @@ int nch5breakpoint(int err) { #ifdef H5BACKTRACE -# if !defined _WIN32 && !defined __CYGWIN__ +# if !defined _WIN32 && !defined __CYGWIN__ && !defined __EMSCRIPTEN__ int count = 0; char** trace = NULL; int i;