$NetBSD: patch-ac,v 1.6 2007/06/08 08:07:05 wiz Exp $

--- growisofs.c.orig	2008-03-04 10:15:03.000000000 +0100
+++ growisofs.c
@@ -409,7 +409,7 @@
 #  define _GNU_SOURCE
 # endif
 #elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || \
-      (defined(__APPLE__) && defined(__MACH__))
+      (defined(__APPLE__) && defined(__MACH__)) || defined(__DragonFly__)
 # define off64_t	off_t
 # if !defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) || \
               __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__<1050
@@ -995,7 +995,7 @@ char *setup_fds (char *device)
     goto open_rw;
 }
 
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
 
 #include <sys/cdio.h>
 #include <camlib.h>
@@ -2940,7 +2940,9 @@ int main (int argc, char *argv[])
 # ifdef __FreeBSD__
 	syscall(SYS_mlockall,3);
 # else
+#  if !defined(__NetBSD__) && !defined(__DragonFly__)
 	mlockall(MCL_CURRENT|MCL_FUTURE);
+#  endif
 # endif
     } while (0);
 
