diff options
author | scottl <scottl@FreeBSD.org> | 2002-10-20 01:05:27 +0800 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2002-10-20 01:05:27 +0800 |
commit | 8c6119d461f987c890e2b56a5deb1ecc970b2b8b (patch) | |
tree | 40e86ac97e39e09cf788ba61b6a5b0e12ae8a455 /sysutils/cdrtools | |
parent | 53b8b179797026de50bdeef995196844e58799a1 (diff) | |
download | freebsd-ports-gnome-8c6119d461f987c890e2b56a5deb1ecc970b2b8b.tar.gz freebsd-ports-gnome-8c6119d461f987c890e2b56a5deb1ecc970b2b8b.tar.zst freebsd-ports-gnome-8c6119d461f987c890e2b56a5deb1ecc970b2b8b.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.
Diffstat (limited to 'sysutils/cdrtools')
-rw-r--r-- | sysutils/cdrtools/files/patch-bc | 11 |
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"); |