patch-Makefile_PL 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --- EV-4.17.orig/Makefile.PL 2013-08-01 04:08:54.000000000 +0200
  2. +++ EV-4.17/Makefile.PL 2014-06-23 18:55:22.780438631 +0200
  3. @@ -112,7 +112,7 @@ the default here unless you run into com
  4. EOF
  5. -$DEFINE .= " -DEV_USE_POLL=" . (0 + (prompt ("Enable poll backend (y/n)?", (-e "/usr/include/poll.h") ? "y" : "n") =~ /[yY]/));
  6. +$DEFINE .= " -DEV_USE_POLL=" . (0 + (prompt ("Enable poll backend (y/n)?", "n") =~ /[yY]/));
  7. print <<EOF;
  8. @@ -131,7 +131,7 @@ EOF
  9. my $can_epoll = -e "/usr/include/sys/epoll.h";
  10. $can_epoll = $ENV{EV_EPOLL} if exists $ENV{EV_EPOLL};
  11. -$DEFINE .= " -DEV_USE_EPOLL=" . (0 + (prompt ("Enable epoll backend (y/n)?", $can_epoll ? "y" : "n") =~ /[yY]/));
  12. +$DEFINE .= " -DEV_USE_EPOLL=" . (0 + (prompt ("Enable epoll backend (y/n)?", "y") =~ /[yY]/));
  13. print <<EOF;
  14. @@ -159,7 +159,7 @@ EOF
  15. my $can_kqueue = -e "/usr/include/sys/event.h";
  16. $can_kqueue = $ENV{EV_KQUEUE} if exists $ENV{EV_KQUEUE};
  17. -$DEFINE .= " -DEV_USE_KQUEUE=" . (0 + (prompt ("Enable kqueue backend (y/n)?", $can_kqueue ? "y" : "n") =~ /[yY]/));
  18. +$DEFINE .= " -DEV_USE_KQUEUE=" . (0 + (prompt ("Enable kqueue backend (y/n)?", "n") =~ /[yY]/));
  19. print <<EOF;
  20. @@ -172,7 +172,7 @@ at runtime, with a safe fallback to othe
  21. EOF
  22. -$DEFINE .= " -DEV_USE_PORT=" . (0 + (prompt ("Enable event port backend (y/n)?", (-e "/usr/include/sys/port.h") ? "y" : "n") =~ /[yY]/));
  23. +$DEFINE .= " -DEV_USE_PORT=" . (0 + (prompt ("Enable event port backend (y/n)?", "n") =~ /[yY]/));
  24. print <<EOF;
  25. @@ -210,7 +210,7 @@ EOF
  26. my $can_inotify = -e "/usr/include/sys/inotify.h";
  27. $can_inotify = $ENV{EV_INOTIFY} if exists $ENV{EV_INOTIFY};
  28. -$DEFINE .= " -DEV_USE_INOTIFY=" . (0 + (prompt ("Enable inotify support (y/n)?", $can_inotify ? "y" : "n") =~ /[yY]/));
  29. +$DEFINE .= " -DEV_USE_INOTIFY=" . (0 + (prompt ("Enable inotify support (y/n)?", "n") =~ /[yY]/));
  30. print <<EOF;
  31. @@ -227,7 +227,7 @@ EOF
  32. my $can_eventfd = -e "/usr/include/sys/eventfd.h";
  33. $can_eventfd = $ENV{EV_EVENTFD} if exists $ENV{EV_EVENTFD};
  34. -$DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", $can_eventfd ? "y" : "n") =~ /[yY]/));
  35. +$DEFINE .= " -DEV_USE_EVENTFD=" . (0 + (prompt ("Enable linux eventfd support (y/n)?", "n") =~ /[yY]/));
  36. print <<EOF;
  37. @@ -243,7 +243,7 @@ EOF
  38. my $can_signalfd = -e "/usr/include/sys/signalfd.h";
  39. $can_signalfd = $ENV{EV_SIGNALFD} if exists $ENV{EV_SIGNALFD};
  40. -$DEFINE .= " -DEV_USE_SIGNALFD=" . (0 + (prompt ("Enable linux signalfd support (y/n)?", $can_signalfd ? "y" : "n") =~ /[yY]/));
  41. +$DEFINE .= " -DEV_USE_SIGNALFD=" . (0 + (prompt ("Enable linux signalfd support (y/n)?", "n") =~ /[yY]/));
  42. print <<EOF;