openbsd-ports/misc/deco/patches/patch-scr_c

50 lines
1.0 KiB
Plaintext

Hunk #1: Fix -fno-common build failure.
Index: scr.c
--- scr.c.orig
+++ scr.c
@@ -148,7 +148,7 @@ WINDOW VScreen;
int BlackWhite = 0;
int ColorMode = 1;
int GraphMode = 1;
-int TtyUpperCase = 0;
+extern int TtyUpperCase;
static WINDOW curscr;
static scrool, rscrool;
@@ -167,7 +167,7 @@ static char *KS, *KE;
static char *CL, *CM, *SE, *SO, *TE, *TI, *VE, *VS,
*AL, *DL, *IS, *IF, *FS, *MD, *MH, *ME, *MR,
- *CF, *CB, *AF, *AB, *Sf, *Sb, *MF, *MB;
+ *CF, *CB, *AF, *AB, *Sf, *Sb, *MF, *MB, *OP;
static NF, NB;
static char MS, C2;
@@ -231,6 +231,7 @@ struct CapTab outtab [] = {
{ "Cs", CAPSTR, 0, 0, 0, &Cs, },
{ "Ce", CAPSTR, 0, 0, 0, &Ce, },
{ "Ct", CAPSTR, 0, 0, 0, &Ct, },
+ { "op", CAPSTR, 0, 0, 0, &OP, },
{ { 0, 0, }, 0, 0, 0, 0, 0, },
};
@@ -413,6 +414,8 @@ void VClose ()
tputs (TE);
if (KE)
tputs (KE);
+ if (OP)
+ tputs (OP);
VFlush ();
TtyReset ();
}
@@ -425,6 +428,8 @@ void VRestore ()
tputs (VE);
if (KE)
tputs (KE);
+ if (OP)
+ tputs (OP);
VFlush ();
TtyReset ();
}