forked from Lainports/freebsd-ports
allowing to record DVD-R[W]s. [1] NOTE: Please don't blame Joerg Schilling or ask for support on the cdrtools mailing lists if this doesn't work. Also have a look at the output of `cdrecord -version`. - Append '-rscsi' to PKGNAMESUFFIX when built with WITH_RSCSI (equivalent is done when built with WITH_DVDHACK). - Limit the workaround that disables using mlockall(2) to FreeBSD versions where it triggers a panic. Requested by: pav [1] Tested by: Harold Gutch <logix@foobar.franken.de> [1]
19 lines
454 B
Text
19 lines
454 B
Text
--- conf/configure.orig Fri Sep 19 16:47:37 2003
|
|
+++ conf/configure Fri Sep 19 16:49:26 2003
|
|
@@ -5564,9 +5564,16 @@
|
|
extern int errno;
|
|
#endif
|
|
|
|
+#if defined (__FreeBSD__) && __FreeBSD__ >= 2
|
|
+#include <osreldate.h>
|
|
+#endif
|
|
+
|
|
int
|
|
main()
|
|
{
|
|
+#if defined(__FreeBSD__) && __FreeBSD_version < 501113
|
|
+ exit(-1);
|
|
+#endif
|
|
if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) {
|
|
if (errno == EINVAL || errno == ENOMEM ||
|
|
errno == EPERM || errno == EACCES)
|