pkgsrc/sysutils/dvd+rw-tools/patches/patch-ac
wiz 4a9ec1a2ba Update to 6.1:
This is essentially minor bug-fix release, which most notably works
around "unable to anonymously mmap" failure at startup and fixes
typo in -speed interpretation code.  Besides bug-fixes this version
attempts to obtain exclusive lock on block device under Linux. This
opens possibility for safe deployment of automounting/autoplaying
facility under Linux 2.6. Keep in mind that it takes two to dance
tango, automounters/autoplayers has to play along as well.
2006-06-11 15:22:21 +00:00

32 lines
901 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.5 2006/06/11 15:22:21 wiz Exp $
--- growisofs.c.orig 2006-01-26 21:16:54.000000000 +0000
+++ growisofs.c
@@ -372,7 +372,7 @@
# ifndef _GNU_SOURCE
# define _GNU_SOURCE
# endif
-#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
+#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
# define off64_t off_t
# define stat64 stat
# define fstat64 fstat
@@ -856,7 +856,7 @@ char *setup_fds (char *device)
goto open_rw;
}
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
#include <sys/cdio.h>
#include <camlib.h>
@@ -2266,7 +2266,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);
#endif