diff options
Diffstat (limited to 'japanese/iv/files/patch-bg')
-rw-r--r-- | japanese/iv/files/patch-bg | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/japanese/iv/files/patch-bg b/japanese/iv/files/patch-bg index e0c06e36f053..b86bd7ffa4aa 100644 --- a/japanese/iv/files/patch-bg +++ b/japanese/iv/files/patch-bg @@ -1,19 +1,33 @@ ---- src/bin/ibuild/ibcode.c.orig Tue Oct 20 02:58:01 1992 -+++ src/bin/ibuild/ibcode.c Wed Jan 5 22:35:36 2000 -@@ -41,7 +41,12 @@ +--- ./src/bin/ibuild/ibcode.c.orig Tue Oct 20 02:58:01 1992 ++++ ./src/bin/ibuild/ibcode.c Wed Jul 9 00:22:23 2003 +@@ -41,11 +41,26 @@ #include <Unidraw/Graphic/pspaint.h> #include <InterViews/shape.h> #include <InterViews/transformer.h> -+#if __FreeBSD_cc_version < 400002 ++ ++#if __FreeBSD__ >= 2 ++#include <osreldate.h> ++#if (__FreeBSD_cc_version < 400002 && __FreeBSD_version < 500000) #include <osfcn.h> +#endif ++#endif +#if __FreeBSD_cc_version >= 400003 +#include <stdio.h> +#endif #include <stdlib.h> #include <stream.h> #include <string.h> -@@ -362,7 +367,7 @@ + ++#if (__FreeBSD_version > 500000) ++extern "C" { ++ extern int sprintf(char * __restrict, const char * __restrict, ...); ++} ++#endif ++ + /*****************************************************************************/ + + char* FilterName (const char* name) { +@@ -362,7 +377,7 @@ ButtonStateVar* bsVar = intcomp->GetButtonStateVar(); const char* bsname = bsVar->GetName(); const char* proc = bsVar->GetFuncName(); @@ -22,7 +36,7 @@ const char* subclass = bsVar->GetSubclassName(); if (!bsVar->IsSubclass() && !_emitMain) { -@@ -375,7 +380,7 @@ +@@ -375,7 +390,7 @@ if (!_bsinitslist->Search(bsname)) { _bsinitslist->Append(bsname); @@ -31,7 +45,7 @@ out << " " << bsname; } else { out << " " << ButtonClass << "* " << bsname; -@@ -384,7 +389,7 @@ +@@ -384,7 +399,7 @@ out << bsVar->GetInitial() << ");\n"; if (!_emitMain && proc != nil && *proc != '\0') { @@ -40,7 +54,7 @@ out << " " << bsname << "->SetCoreClass(this);\n"; out <<" "<< bsname<<"->SetCoreFunc("<< "&" << coreclass; out << "::" << proc << ");\n"; -@@ -1598,10 +1603,10 @@ +@@ -1598,10 +1613,10 @@ void CodeView::BeginInstantiate (ostream& out) { InteractorComp* icomp = GetIntComp(); const char* mname = icomp->GetMemberNameVar()->GetName(); |