$NetBSD: patch-ab,v 1.5 2006/12/08 22:06:28 joerg Exp $

--- avidemux/ADM_script/ADM_JSFunctions.cpp.orig	2006-12-03 11:19:32.000000000 +0100
+++ avidemux/ADM_script/ADM_JSFunctions.cpp	2006-12-03 11:20:16.000000000 +0100
@@ -325,7 +325,9 @@ JSBool systemExecute(JSContext *cx, JSOb
 	// clear file descriptor table of forked process and fork
 #if defined( __linux__) || defined(__maxosx__)
 	pid_t pidRtn = fork();
-#elif __FreeBSD__
+#elif defined(__NetBSD__)
+	pid_t pidRtn = vfork();
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
 	pid_t pidRtn = rfork(RFPROC|RFCFDG);
 #endif
 	if(pidRtn == 0)
