Skip Menu |

This queue is for tickets about the Curses CPAN distribution.

Report information
The Basics
Id: 14650
Status: resolved
Priority: 0/
Queue: Curses

People
Owner: Nobody in particular
Requestors: yselkowitz [...] users.sourceforge.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in:
  • 1.0
  • 1.01
  • 1.02
  • 1.04
  • 1.05
  • 1.06
  • 1.07
  • 1.08
  • 1.08a
  • 1.08b
  • 1.09
  • 1.10
  • 1.11
  • 1.12
Fixed in: (no value)



Subject: Curses Cygwin support
I'm attaching a patch which fixes Cygwin support in Curses-1.12. Binary packages are available at: ftp://sunsite.dk/projects/cygwinports/release/perl/perl-Curses/
diff -urN -x .build -x .inst -x .sinst Curses-1.12-orig/Makefile.PL Curses-1.12/Makefile.PL --- Curses-1.12-orig/Makefile.PL 2005-03-17 10:46:20.000000000 -0600 +++ Curses-1.12/Makefile.PL 2005-09-19 17:00:00.765625000 -0500 @@ -95,7 +95,7 @@ 'aix' => [ '' => '-lcurses -ltermcap' ], 'bsd386' => [ '' => '-lcurses -ltermcap' ], 'bsdos' => [ '' => '-lcurses -ltermcap' ], - 'cygwin' => [ '-I/usr/local/include' => '-lncurses' ], + 'cygwin' => [ '-I/usr/include/ncurses' => '-lncurses' ], 'darwin' => [ '' => '-lcurses' ], 'dec_osf' => [ '' => '-lcurses -ltermcap' ], 'dgux' => [ '' => '-lcurses -ltermcap' ], diff -urN -x .build -x .inst -x .sinst Curses-1.12-orig/hints/c-cygwin.h Curses-1.12/hints/c-cygwin.h --- Curses-1.12-orig/hints/c-cygwin.h 2001-07-24 08:52:29.000000000 -0500 +++ Curses-1.12/hints/c-cygwin.h 2005-09-19 17:00:00.781250000 -0500 @@ -6,7 +6,7 @@ /* These hints thanks to Federico Spinazzi <spinazzi@databankgroup.it> */ -#include <curses.h> +#include <ncurses.h> #ifdef C_PANELSUPPORT #include <panel.h> @@ -20,6 +20,9 @@ #include <form.h> #endif +#undef bool +#undef instr + #undef C_LONGNAME #undef C_LONG0ARGS #undef C_LONG2ARGS