$NetBSD: patch-ab,v 1.6 2008/02/19 09:11:43 xtraeme Exp $

--- avidemux/ADM_script/ADM_JSFunctions.cpp.orig	2008-02-18 21:17:52.000000000 +0100
+++ avidemux/ADM_script/ADM_JSFunctions.cpp	2008-02-18 21:18:36.000000000 +0100
@@ -375,7 +375,9 @@
 	// clear file descriptor table of forked process and fork
 #if defined( __linux__) || defined(__macosx__) || defined(__APPLE__)
 	pid_t pidRtn = fork();
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__NetBSD__)
+	pid_t pidRtn = vfork();
+#elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
 	pid_t pidRtn = rfork(RFPROC|RFCFDG);
 #endif
 	if(pidRtn == 0)
