pkgsrc/sysutils/dvd+rw-tools/patches/patch-ac
wiz 34507931a3 Update to 7.1:
Sense codes are now transcribed into human-readable representation.
The -F/-free-space option was added. Solaris compatibility was
increased. Building on Mac OS X 10.5 was fixed.  A workaround for
missing direct I/O on Linux 2.4 was implemented.  SCSI devices are
now locked more aggressively on Linux. Error handling was improved.
Several other fixes and enhancements were made.
2008-04-23 15:35:50 +00:00

32 lines
987 B
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$NetBSD: patch-ac,v 1.7 2008/04/23 15:35:50 wiz Exp $
--- growisofs.c.orig 2008-03-04 10:15:03.000000000 +0100
+++ growisofs.c
@@ -409,7 +409,7 @@
# define _GNU_SOURCE
# endif
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || \
- (defined(__APPLE__) && defined(__MACH__))
+ (defined(__APPLE__) && defined(__MACH__)) || defined(__DragonFly__)
# define off64_t off_t
# if !defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) || \
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__<1050
@@ -995,7 +995,7 @@ char *setup_fds (char *device)
goto open_rw;
}
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
#include <sys/cdio.h>
#include <camlib.h>
@@ -2940,7 +2940,9 @@ int main (int argc, char *argv[])
# ifdef __FreeBSD__
syscall(SYS_mlockall,3);
# else
+# if !defined(__NetBSD__) && !defined(__DragonFly__)
mlockall(MCL_CURRENT|MCL_FUTURE);
+# endif
# endif
} while (0);