mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
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.
This commit is contained in:
parent
5348215d8b
commit
ce034b2fd5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68352
11
sysutils/cdrtools-devel/files/patch-bc
Normal file
11
sysutils/cdrtools-devel/files/patch-bc
Normal file
@ -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");
|
11
sysutils/cdrtools/files/patch-bc
Normal file
11
sysutils/cdrtools/files/patch-bc
Normal file
@ -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");
|
Loading…
Reference in New Issue
Block a user