Author: infinoid
Date: Wed Jul 23 13:56:45 2008
New Revision: 29703

Modified:
   trunk/runtime/parrot/library/ncurses.pir

Log:
[runtime library] Apply patch from rurban++ in RT#57110.
* Cygwin has renamed the ncurses libraries; fall back to trying the cygwin 
names if the normal library names fail.


Modified: trunk/runtime/parrot/library/ncurses.pir
==============================================================================
--- trunk/runtime/parrot/library/ncurses.pir    (original)
+++ trunk/runtime/parrot/library/ncurses.pir    Wed Jul 23 13:56:45 2008
@@ -1,6 +1,9 @@
 .sub __ncurses_init :load
 
 loadlib $P1, 'libform'
+if $P1 goto has_lib
+loadlib $P1, 'cygform-8'
+has_lib:
 dlfunc $P2, $P1, 'new_field', 'piiiiii'
 store_global 'ncurses::new_field', $P2
 dlfunc $P2, $P1, 'dup_field', 'ppii'
@@ -119,7 +122,9 @@
 store_global 'ncurses::data_behind', $P2
 
 loadlib $P1, 'libncurses'
-
+if $P1 goto has_lib1
+loadlib $P1, 'cygncurses-8'
+has_lib1:
 dlfunc $P2, $P1, 'keybound', 'tii'
 store_global 'ncurses::keybound', $P2
 

Reply via email to