$NetBSD: patch-ab,v 1.8 2011/03/14 06:06:58 rumko Exp $

Deal with DragonFly BSD separately from FreeBSD.
--- configure.orig	2010-06-06 13:00:47.000000000 +0000
+++ configure
@@ -205,7 +205,7 @@ SRCS+= osdep-darwin.c \
 EOF
 	;;
 # ------------------------------------------------------------------------------
-    FreeBSD|DragonFly)
+    FreeBSD)
 	cat <<EOF >>$CONFIG_H
 #define HAVE_ASPRINTF
 #define HAVE_BROKEN_KQUEUE
@@ -236,6 +236,39 @@ SRCS+= osdep-freebsd.c \
 EOF
 	;;
 # ------------------------------------------------------------------------------
+    DragonFly)
+	cat <<EOF >>$CONFIG_H
+#define HAVE_ASPRINTF
+#define HAVE_BZERO
+#define HAVE_CLOSEFROM
+#define HAVE_DAEMON
+#define HAVE_FGETLN
+#define HAVE_FORKPTY
+#define HAVE_GETOPT
+#define HAVE_LIBUTIL_H
+#define HAVE_LOGIN_CAP
+#define HAVE_PATHS_H
+#define HAVE_POLL
+#define HAVE_PROGNAME
+#define HAVE_SETPROCTITLE
+#define HAVE_STRCASESTR
+#define HAVE_STRLCAT
+#define HAVE_STRLCPY
+#define HAVE_STRTONUM
+#define HAVE_STRSEP
+#define HAVE_TREE_H
+#define HAVE_U_INT
+EOF
+	cat <<EOF >>$CONFIG_MK
+LIBS+= -lcurses -lcrypt -lutil -levent
+SRCS+= osdep-unknown.c \
+	compat/vis.c \
+	compat/unvis.c \
+	compat/imsg-buffer.c \
+	compat/imsg.c
+EOF
+	;;
+# ------------------------------------------------------------------------------
     NetBSD)
 	cat <<EOF >>$CONFIG_H
 #define HAVE_ASPRINTF
