34507931a3
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.
32 lines
987 B
Text
32 lines
987 B
Text
$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);
|
||
|