summaryrefslogtreecommitdiff
path: root/sysutils/cdrtools
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2002-10-19 17:05:27 +0000
committerScott Long <scottl@FreeBSD.org>2002-10-19 17:05:27 +0000
commitce034b2fd568a1b7b211a6083c2ddf49a7062a25 (patch)
treedabf45f5582207d6515053867c673a2c97b2c16a /sysutils/cdrtools
parentUpdating portrevision, I said! DWIM! (diff)
Make the cdrecord portion of cdrtools compile. 5-CURRENT defines
_POSIX_MEMLOCK, which was causing cdrecord to think that mlockall(2) was available. Of course the real solution is to not define _POSIX_MEMLOCK until this is true.
Notes
Notes: svn path=/head/; revision=68352
Diffstat (limited to 'sysutils/cdrtools')
-rw-r--r--sysutils/cdrtools/files/patch-bc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/cdrtools/files/patch-bc b/sysutils/cdrtools/files/patch-bc
new file mode 100644
index 000000000000..e9d00c964648
--- /dev/null
+++ b/sysutils/cdrtools/files/patch-bc
@@ -0,0 +1,11 @@
+--- cdrecord/cdrecord.c.orig Sat Oct 19 10:49:00 2002
++++ cdrecord/cdrecord.c Sat Oct 19 10:49:14 2002
+@@ -354,7 +354,7 @@
+ * Try to lock us im memory (will only work for root)
+ * but you need access to root anyway to use /dev/scg?
+ */
+-#if defined(HAVE_MLOCKALL) || defined(_POSIX_MEMLOCK)
++#if defined(HAVE_MLOCKALL)
+ if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) {
+ errmsg("WARNING: Cannot do mlockall(2).\n");
+ errmsgno(EX_BAD, "WARNING: This causes a high risk for buffer underruns.\n");