~leon_plickat/wat

5ee1e61740cdab4d77aae89a51faa2acc3477e17 — Leon Henrik Plickat 2 months ago d3c8dbe
Use correct OS macro to guard execinfo.h
1 files changed, 2 insertions(+), 2 deletions(-)

M wat.c
M wat.c => wat.c +2 -2
@@ 27,7 27,7 @@
#include <sys/wait.h>
#include <unistd.h>

#ifndef BSD
#ifdef __linux__
#include<execinfo.h>
#endif



@@ 171,7 171,7 @@ static void handle_error (int signum)
		"\n";
	fputs(msg, stderr);

#ifndef BSD
#ifdef __linux__
	fputs("Attempting to get backtrace:\n", stderr);

	/* In some rare cases, getting a backtrace can also cause a segfault.