endif
ifeq ($(UNAME_S),OpenBSD)
OPENBSD = yes
+ NO_EXECINFO_H = yes
+ NO_UCONTEXT_H = yes
+ NO_IMMINTRIN_H = yes
CFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
SDL_CFLAGS += -DSDL_DISABLE_IMMINTRIN_H
ifdef NO_STRDUP
@echo "#define NO_STRDUP" >> $@
endif
+ifdef NO_UCONTEXT_H
+ @echo "#define NO_UCONTEXT_H" >> $@
+endif
+ifdef NO_EXECINFO_H
+ @echo "#define NO_EXECINFO_H" >> $@
+endif
ifeq ($(USE_UTF8), yes)
@echo "#define USE_UTF8" >> $@
endif
#else
+#ifndef NO_EXECINFO_H
#include <execinfo.h>
+#endif
/* get REG_EIP from ucontext.h */
+#ifndef NO_UCONTEXT_H
#ifndef __USE_GNU
#define __USE_GNU
#include <ucontext.h>
#endif
+#endif
// REG_EIP does not exist on 64bit CPU
#if defined(__amd64__) || defined (__x86_64__)