From 0a0d3407d23633bc3e5a3d06b1690eeb5ac81d55 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 19 Aug 2008 19:08:16 -0400 Subject: [PATCH] mc: Fixed to build against recent versions of slang --- shells/mc/slang.patch | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 shells/mc/slang.patch diff --git a/shells/mc/slang.patch b/shells/mc/slang.patch new file mode 100644 index 000000000..ab9276fd1 --- /dev/null +++ b/shells/mc/slang.patch @@ -0,0 +1,48 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../mc/slang.patch +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +sed -i -e 's,_SLsys_\(input_pending\|getkey\),SLang_\1,g' ./src/slint.c +--- ./src/slint.c.orig 2008-08-19 17:16:48.000000000 -0400 ++++ ./src/slint.c 2008-08-19 17:42:32.000000000 -0400 +@@ -75,8 +75,8 @@ + extern unsigned int SLang_Input_Buffer_Len; + extern unsigned char SLang_Input_Buffer []; + #if SLANG_VERSION >= 10000 +-extern unsigned int _SLsys_getkey (void); +-extern int _SLsys_input_pending (int); ++extern unsigned int SLang_getkey (void); ++extern int SLang_input_pending (int); + #else + extern unsigned int SLsys_getkey (void); + extern int SLsys_input_pending (int); +@@ -98,7 +98,7 @@ + return(ch); + } + #if SLANG_VERSION >= 10000 +- else return(_SLsys_getkey ()); ++ else return(SLang_getkey ()); + #else + else return(SLsys_getkey()); + #endif +@@ -110,7 +110,7 @@ + unsigned char c; + if (SLang_Input_Buffer_Len) return (int) SLang_Input_Buffer_Len; + #if SLANG_VERSION >= 10000 +- n = _SLsys_input_pending (tsecs); ++ n = SLang_input_pending (tsecs); + #else + n = SLsys_input_pending (tsecs); + #endif