Skip to content
Snippets Groups Projects
Commit abeb7692 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

only use execinfo.h for linux

parent 681e32e4
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,11 @@ typedef int socklen_t; ...@@ -84,7 +84,11 @@ typedef int socklen_t;
static int stderr_isatty; static int stderr_isatty;
/* I don't see any other systems where this header (and backtrace) are
available. */
#ifdef __linux__
#include <execinfo.h> #include <execinfo.h>
#endif
typedef struct _fdpoll typedef struct _fdpoll
{ {
...@@ -653,7 +657,7 @@ static void sys_trytogetmoreguibuf(int newsize) ...@@ -653,7 +657,7 @@ static void sys_trytogetmoreguibuf(int newsize)
} }
void blargh(void) { void blargh(void) {
#ifdef MACOSX #ifndef __linux__
fprintf(stderr,"unhandled exception\n"); fprintf(stderr,"unhandled exception\n");
#else #else
int i; int i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment