summaryrefslogtreecommitdiff
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
parent5348215d8bbba2a77689051721a29e1fb70a7086 (diff)
downloadfreebsd-ports-ce034b2fd568a1b7b211a6083c2ddf49a7062a25.zip
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.
-rw-r--r--sysutils/cdrtools-devel/files/patch-bc11
-rw-r--r--sysutils/cdrtools/files/patch-bc11
2 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/cdrtools-devel/files/patch-bc b/sysutils/cdrtools-devel/files/patch-bc
new file mode 100644
index 000000000000..e9d00c964648
--- /dev/null
+++ b/sysutils/cdrtools-devel/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");
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");