$NetBSD$

--- ngrep.c.orig	2006-03-14 02:32:02.000000000 +0000
+++ ngrep.c
@@ -7,7 +7,7 @@
  *
  */
 
-#if defined(BSD) || defined(SOLARIS) || defined(MACOSX)
+#if defined(BSD) || defined(SOLARIS) || defined(MACOSX) || defined(__DragonFly__)
 #include <unistd.h>
 #include <ctype.h>
 #include <sys/types.h>
