From 4cf0001823d4f5cdcc98848c25fc6bcc89058a36 Mon Sep 17 00:00:00 2001 From: Steven Chamberlain Date: Wed, 13 Jul 2016 16:13:59 +0100 Subject: [PATCH] Use glibc headers on GNU/kFreeBSD On GNU/kFreeBSD, the glibc-provided alloca.h and signal.h can be used, instead of the ones the compat headers would try to include instead. --- include/compat/freebsd/alloca.h | 4 ++++ include/compat/freebsd/signal.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/compat/freebsd/alloca.h b/include/compat/freebsd/alloca.h index c8b49f2..c1acc38 100644 --- a/include/compat/freebsd/alloca.h +++ b/include/compat/freebsd/alloca.h @@ -1 +1,5 @@ +#if BX_CRT_GLIBC +#include_next +#else #include +#endif diff --git a/include/compat/freebsd/signal.h b/include/compat/freebsd/signal.h index fd7d90f..deb07d2 100644 --- a/include/compat/freebsd/signal.h +++ b/include/compat/freebsd/signal.h @@ -1 +1,5 @@ +#ifdef BX_CRT_GLIBC +#include_next +#else #include +#endif