$NetBSD$

--- libgc/configure.orig	2009-06-02 16:41:38 +0300
+++ libgc/configure	2009-06-02 16:43:54 +0300
@@ -4754,6 +4754,14 @@ _ACEOF
 	INCLUDES="$INCLUDES -pthread"
 	THREADDLLIBS=-pthread
       	;;
+     *-*-dragonfly*)
+	cat >>confdefs.h <<\_ACEOF
+#define GC_FREEBSD_THREADS 1
+_ACEOF
+
+	INCLUDES="$INCLUDES -pthread"
+	THREADDLLIBS=-pthread
+      	;;
      *-*-kfreebsd*-gnu)
 	cat >>confdefs.h <<\_ACEOF
 #define GC_FREEBSD_THREADS 1
