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