$NetBSD: patch-ac,v 1.3 2009/04/28 13:01:39 hasso Exp $

--- vobcopy.h.orig	2008-02-19 07:27:04 +0200
+++ vobcopy.h	2009-04-28 15:31:42 +0300
@@ -43,7 +43,11 @@
 #include <sys/mnttab.h>
 #include <sys/statvfs.h>
 
+#ifdef FALSE
+typedef int bool;
+#else
 typedef enum  { FALSE=0, TRUE=1 }  bool;
+#endif
 
 #  if ( _FILE_OFFSET_BITS == 64 )
 #define HAS_LARGEFILE 1
@@ -58,7 +62,7 @@ typedef enum  { FALSE=0, TRUE=1 }  bool;
 /* //////////  *BSD //////////  */
 #if ( defined( BSD ) && ( BSD >= 199306 ) )
 
-#  if  !defined( __NetBSD__ ) ) || \
+#  if  ( !defined( __NetBSD__ ) ) || \
        ( defined( __NetBSD__) && ( __NetBSD_Version__ < 200040000 ) )
 #include <sys/mount.h>
 #define USE_STATFS 1
@@ -88,15 +92,21 @@ typedef enum  { FALSE=0, TRUE=1 }  bool;
 
 #    endif
 
-#  else
+#  elif !defined(__DragonFly__)
 
 #include <sys/vfs.h>
 
 #  endif
 
+#ifdef O_LARGEFILE
 #define HAS_LARGEFILE 1
+#endif
 
+#ifdef FALSE
+typedef int bool;
+#else
 typedef enum  { FALSE=0, TRUE=1 }  bool;
+#endif
 
 #else /* *BSD */
 
@@ -117,8 +127,10 @@ typedef enum  { FALSE=0, TRUE=1 }  bool;
 #define GETMNTINFO_USES_STATFS 1
 #define USE_GETMNTINFO 1
 
+#ifndef FALSE
 #define FALSE 0
 #define TRUE 1
+#endif
 typedef int bool;
 
 #  endif
@@ -145,7 +157,11 @@ typedef int bool;
 #define HAVE_GETOPT_LONG 1
 #define HAS_LARGEFILE    1
 
+#ifdef FALSE
+typedef int bool;
+#else
   typedef enum  { FALSE=0, TRUE=1 }  bool;
+#endif
 
 #elif defined( __GLIBC__ )
 
@@ -156,13 +172,21 @@ typedef int bool;
 #define HAVE_GETOPT_LONG 1
 #define HAS_LARGEFILE    1
 
+#ifdef FALSE
+typedef int bool;
+#else
   typedef enum  { FALSE=0, TRUE=1 }  bool;
+#endif
 
 #else
 
 /* ////////// For other cases ////////// */
 
+#ifdef FALSE
+typedef int bool;
+#else
 typedef enum  { FALSE=0, TRUE=1 }  bool;
+#endif
 
 #if defined( __USE_FILE_OFFSET64 )
 #  define HAS_LARGEFILE 1
@@ -212,6 +236,6 @@ void watchdog_handler( int signal );
 void shutdown_handler( int signal );
 char *safestrncpy(char *dest, const char *src, size_t n);
 
-#if defined(__APPLE__) && defined(__GNUC__)
+#if (defined(__APPLE__) && defined(__GNUC__)) || defined(__DragonFly__)
 int fdatasync( int value );
 #endif
