From eaf079bb204b41d8b1e1dd1df21c23c710d35fe3 Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Tue, 10 Jan 2006 00:54:23 +0000 Subject: o Fix build on FreeBSD 4.x branch o Some code tidying up through better patching PR: 91485 Submitted by: Tod McQuillin --- sysutils/vobcopy/files/patch-vobcopy.h | 39 +++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 15 deletions(-) (limited to 'sysutils/vobcopy/files/patch-vobcopy.h') diff --git a/sysutils/vobcopy/files/patch-vobcopy.h b/sysutils/vobcopy/files/patch-vobcopy.h index 18bb1717c93d..ed9511cd82b5 100644 --- a/sysutils/vobcopy/files/patch-vobcopy.h +++ b/sysutils/vobcopy/files/patch-vobcopy.h @@ -1,6 +1,23 @@ ---- vobcopy.h.orig Fri Jan 6 23:22:11 2006 -+++ vobcopy.h Fri Jan 6 23:34:11 2006 -@@ -67,24 +67,33 @@ +--- vobcopy.h.orig Wed Dec 7 21:32:10 2005 ++++ vobcopy.h Sun Jan 8 15:26:43 2006 +@@ -19,7 +19,6 @@ + + #if ( defined( __unix__ ) || defined( unix )) && !defined( USG ) + #include +-#else + #endif + + #if defined( __GNUC__ ) && \ +@@ -32,6 +31,8 @@ + /* by some bugreport:*/ + #if !( defined( BSD ) && ( BSD >= 199306 ) ) && !defined( sun ) + #include ++#else ++#include + #endif + + /*for/from play_title.c*/ +@@ -67,24 +68,23 @@ /* ////////// *BSD ////////// */ #if ( defined( BSD ) && ( BSD >= 199306 ) ) @@ -9,11 +26,7 @@ -#include -#define USE_STATFS 1 +# if ( defined( __NetBSD__) && ( __NetBSD_Version__ < 200040000 ) ) || \ -+ ( defined( __FreeBSD__) && \ -+ ( ((__FreeBSD_version >= 460102 ) && (__FreeBSD_version < 500000)) || \ -+ ( __FreeBSD_version >= 500040) \ -+ ) \ -+ ) ++ ( defined( __FreeBSD__) && ( __FreeBSD_version >= 500040 ) ) +#include # else @@ -25,19 +38,15 @@ # endif -# if defined(NetBSD) +- +-#include +# if defined(__NetBSD__) || defined(__FreeBSD__) - #include - #define USE_GETMNTINFO -# if ( __NetBSD_Version__ < 200040000 ) +# if (defined( __NetBSD__ ) && ( __NetBSD_Version__ < 200040000 )) || \ -+ ( defined( __FreeBSD__) && \ -+ ( ((__FreeBSD_version >= 460102 ) && (__FreeBSD_version < 500000)) || \ -+ ( __FreeBSD_version >= 500040) \ -+ ) \ -+ ) ++ (defined( __FreeBSD__ )) #include #define USE_STATFS_FOR_DEV -- cgit v1.2.3