Преглед изворни кода

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.
Steven Chamberlain пре 9 година
родитељ
комит
4cf0001823
2 измењених фајлова са 8 додато и 0 уклоњено
  1. 4 0
      include/compat/freebsd/alloca.h
  2. 4 0
      include/compat/freebsd/signal.h

+ 4 - 0
include/compat/freebsd/alloca.h

@@ -1 +1,5 @@
+#if BX_CRT_GLIBC
+#include_next <alloca.h>
+#else
 #include <stdlib.h>
+#endif

+ 4 - 0
include/compat/freebsd/signal.h

@@ -1 +1,5 @@
+#ifdef BX_CRT_GLIBC
+#include_next <signal.h>
+#else
 #include <sys/signal.h>
+#endif