$NetBSD: patch-ac,v 1.3 2006/12/05 14:26:28 tron Exp $

--- avidemux/ADM_script/DirectorySearch.h.orig	2006-10-08 15:40:42.000000000 +0100
+++ avidemux/ADM_script/DirectorySearch.h	2006-12-05 13:58:39.000000000 +0000
@@ -14,7 +14,9 @@
 #if _MSC_VER > 1000
 #pragma once
 #endif // _MSC_VER > 1000
-#if !defined( __unix__) && !defined(__maxosx__)
+#include <sys/types.h>
+#include <sys/param.h>
+#if !defined(BSD) && !defined( __unix__) && !defined(__macosx__)
 #include <io.h>
 #else
 #include <sys/types.h>
@@ -26,7 +28,7 @@
 // create a non file bit for unix
 #define _A_NONFILE	0x03
 
-#if defined( __unix__) && !defined(__maxosx__)
+#if (defined(__unix__) || defined(BSD)) && !defined(__macosx__)
 
 // wrap the file mode bits
 #define _A_NORMAL	0x00
@@ -50,6 +52,7 @@
 
 class CDirectorySearch
 {
+private:
 public:
 	const char * GetExtension();
 	bool IsExtension(const char *pExtension);
@@ -102,8 +105,7 @@
 	long m_hSearch;
 	_finddata_t m_fdData;
 	std::string m_sDirectory;
-private:
-#ifdef __unix__
+#if defined(__unix__) || defined(BSD)
 	// prototypes
 	int _findfirst(const char *path,_finddata_t *pfdData);
 	int _findnext(unsigned long int hDir,_finddata_t *pfdData);
