diff options
author | joerg <joerg@pkgsrc.org> | 2006-05-19 08:32:04 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-05-19 08:32:04 +0000 |
commit | 946daaf938e14f7c9e58433144a4b2e471deb58c (patch) | |
tree | baebcf1798ae0c6a710b0f9e4cb66cca65cf9a52 /sysutils/vobcopy/patches | |
parent | 74e12c623d364bb986ecbb4e0927c0a349f0607d (diff) | |
download | pkgsrc-946daaf938e14f7c9e58433144a4b2e471deb58c.tar.gz |
Fix errno usage.
Diffstat (limited to 'sysutils/vobcopy/patches')
-rw-r--r-- | sysutils/vobcopy/patches/patch-aa | 12 | ||||
-rw-r--r-- | sysutils/vobcopy/patches/patch-ab | 21 |
2 files changed, 33 insertions, 0 deletions
diff --git a/sysutils/vobcopy/patches/patch-aa b/sysutils/vobcopy/patches/patch-aa new file mode 100644 index 00000000000..cc9a32866c1 --- /dev/null +++ b/sysutils/vobcopy/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.5 2006/05/19 08:32:04 joerg Exp $ + +--- vobcopy.c.orig 2006-05-19 08:27:58.000000000 +0000 ++++ vobcopy.c +@@ -121,7 +121,6 @@ + #include <dvdread/nav_read.h> + #include <dvdread/nav_print.h> + +-extern int errno; + char name[300]; + + /* --------------------------------------------------------------------------*/ diff --git a/sysutils/vobcopy/patches/patch-ab b/sysutils/vobcopy/patches/patch-ab new file mode 100644 index 00000000000..10c0f4cfb80 --- /dev/null +++ b/sysutils/vobcopy/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.5 2006/05/19 08:32:04 joerg Exp $ + +--- dvd.c.orig 2006-05-19 08:29:37.000000000 +0000 ++++ dvd.c +@@ -48,7 +48,6 @@ + + + #include <errno.h> +-extern int errno; + + /*for solaris, if we need to include some cdrom related stuff + #include <sys/cdio.h> +@@ -199,7 +198,7 @@ int get_device( char *path, char *device + if( !strcmp( path, buf.f_mntonname ) ) + { + mounted = TRUE; +-#if defined(__FreeBSD__) && (__FreeBSD_Version > 500000) ++#if defined(__DragonFly__) || (defined(__FreeBSD__) && (__FreeBSD_Version > 500000)) + strcpy(device, buf.f_mntfromname); + #else + strcpy(device, "/dev/r"); |