e22af7
diff -ru bdwgc.orig/configure.ac bdwgc/configure.ac
e22af7
--- bdwgc.orig/configure.ac	2020-07-05 12:09:58.042430329 +0200
e22af7
+++ bdwgc/configure.ac	2020-07-06 19:34:20.918143543 +0200
e22af7
@@ -194,7 +194,7 @@
e22af7
       *-*-aix* | *-*-android* | *-*-cygwin* | *-*-darwin* | *-*-dragonfly* | \
e22af7
       *-*-freebsd* | *-*-haiku* | *-*-hpux11* | *-*-irix* | \
e22af7
       *-*-kfreebsd*-gnu | *-*-gnu* | *-*-*linux* | *-*-msys* | *-*-nacl* | \
e22af7
-      *-*-netbsd* | *-*-openbsd* | *-*-osf* | *-*-solaris*)
e22af7
+      *-*-netbsd* | *-*-openbsd* | *-*-osf* | *-*-solaris* | *-*-midipix*)
e22af7
         AC_DEFINE(GC_THREADS)
e22af7
         AC_DEFINE([_REENTRANT], [1],
e22af7
                   [Required define if using POSIX threads.])
e22af7
@@ -240,6 +240,10 @@
e22af7
         THREADDLLIBS=""
e22af7
         win32_threads=true
Lucio Andrés Illanes Albornoz (arab, vxp) 8a0f36
         ;;
e22af7
+      *-*-midipix*)
e22af7
+        # libpthread is part of libc
e22af7
+        THREADDLLIBS=""
Lucio Andrés Illanes Albornoz (arab, vxp) 8a0f36
+        ;;
e22af7
       *-*-mingw*)
e22af7
         AC_DEFINE(GC_WIN32_PTHREADS)
e22af7
         # Using pthreads-win32 (or other non-Cygwin pthreads) library.
e22af7
@@ -791,7 +795,7 @@
e22af7
        [AC_TRY_COMPILE([
e22af7
 #ifdef __CYGWIN__
e22af7
 #define _GNU_SOURCE 1
e22af7
-#elif defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)
e22af7
+#elif defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) || defined(__midipix__)
e22af7
 #define _GNU_SOURCE 1
e22af7
 #endif
e22af7
 #include <pthread.h>],