From abeb76927297cc8d0ea1c2b94822119b32790a0d Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Fri, 18 Mar 2016 22:17:12 -0400
Subject: [PATCH] only use execinfo.h for linux

---
 pd/src/s_inter.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c
index a2e2efc13..52f9d217b 100644
--- a/pd/src/s_inter.c
+++ b/pd/src/s_inter.c
@@ -84,7 +84,11 @@ typedef int socklen_t;
 
 static int stderr_isatty;
 
+/* I don't see any other systems where this header (and backtrace) are
+   available. */
+#ifdef __linux__
 #include <execinfo.h>
+#endif
 
 typedef struct _fdpoll
 {
@@ -653,7 +657,7 @@ static void sys_trytogetmoreguibuf(int newsize)
 }
 
 void blargh(void) {
-#ifdef MACOSX
+#ifndef __linux__
   fprintf(stderr,"unhandled exception\n");
 #else
   int i;
-- 
GitLab