diff options
author | Eugene Grosbein <eugen@FreeBSD.org> | 2020-08-20 10:09:48 +0000 |
---|---|---|
committer | Eugene Grosbein <eugen@FreeBSD.org> | 2020-08-20 10:09:48 +0000 |
commit | 2cc06739443a9f500dcd1307ea29e0f3e376df86 (patch) | |
tree | 5437e06a77a015999a77221d74da8d2cd87a7a0f /misc/deco/files/patch-scr.c | |
parent | Fix build on FreeBSD 13 (diff) |
misc/deco: fix build with -fno-common (clang 11 and gcc 10)
PORTREVISION not bumped as it fixes build for FreeBSD 13.
Reported by: pkg-fallout
Notes
Notes:
svn path=/head/; revision=545519
Diffstat (limited to 'misc/deco/files/patch-scr.c')
-rw-r--r-- | misc/deco/files/patch-scr.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/misc/deco/files/patch-scr.c b/misc/deco/files/patch-scr.c index d6efc7afa293..607898ddd1ae 100644 --- a/misc/deco/files/patch-scr.c +++ b/misc/deco/files/patch-scr.c @@ -1,5 +1,15 @@ -Index: scr.c -@@ -167,7 +167,7 @@ +--- scr.c.orig 1998-12-29 16:57:11 UTC ++++ 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, @@ -8,7 +18,7 @@ Index: scr.c static NF, NB; static char MS, C2; -@@ -231,6 +231,7 @@ +@@ -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, }, @@ -16,7 +26,7 @@ Index: scr.c { { 0, 0, }, 0, 0, 0, 0, 0, }, }; -@@ -413,6 +414,8 @@ +@@ -413,6 +414,8 @@ void VClose () tputs (TE); if (KE) tputs (KE); @@ -25,7 +35,7 @@ Index: scr.c VFlush (); TtyReset (); } -@@ -425,6 +428,8 @@ +@@ -425,6 +428,8 @@ void VRestore () tputs (VE); if (KE) tputs (KE); |