pkgsrc/sysutils/p5-IO-KQueue/patches/patch-Makefile.PL
schmonz 0d1419d893 Rely on PKG_HAVE_KQUEUE to tell us whether the OS supports kqueue(2).
Fixes build on Darwin 10.12.5 (and probably Bitrig and MirBSD, which had
been excluded from ONLY_FOR_PLATFORM).
2017-07-09 17:17:06 +00:00

40 lines
918 B
Perl

$NetBSD: patch-Makefile.PL,v 1.1 2017/07/09 17:17:06 schmonz Exp $
This check fails on OS X, but the code otherwise builds and passes
its tests. Let pkgsrc decide whether the OS has kqueue(2).
--- Makefile.PL.orig 2005-02-17 22:15:36.000000000 +0000
+++ Makefile.PL
@@ -3,19 +3,19 @@
use strict;
use ExtUtils::MakeMaker;
-eval { require 'syscall.ph'; 1 } || eval { require 'sys/syscall.ph'; 1 };
-
-my $SYS_kqueue = eval { &::SYS_kqueue } || 362;
-
-my $kq = eval { syscall($SYS_kqueue) };
-
-if ($@) {
- print <<EOT;
-No kqueue() available on this platform.
-
-EOT
- exit;
-}
+#eval { require 'syscall.ph'; 1 } || eval { require 'sys/syscall.ph'; 1 };
+#
+#my $SYS_kqueue = eval { &::SYS_kqueue } || 362;
+#
+#my $kq = eval { syscall($SYS_kqueue) };
+#
+#if ($@) {
+# print <<EOT;
+#No kqueue() available on this platform.
+#
+#EOT
+# exit;
+#}
WriteMakefile(
VERSION_FROM => 'KQueue.pm',