According to termcap(3), char PC, *BC, *UP need to be extern. Fixes an
authortb <tb@openbsd.org>
Sun, 16 Apr 2017 18:04:02 +0000 (18:04 +0000)
committertb <tb@openbsd.org>
Sun, 16 Apr 2017 18:04:02 +0000 (18:04 +0000)
ld(1) error found by mestre a while ago.

fix suggested and ok naddy

games/tetris/screen.c

index 8533cb8..4c5fb73 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: screen.c,v 1.17 2016/06/10 15:37:09 tb Exp $  */
+/*     $OpenBSD: screen.c,v 1.18 2017/04/16 18:04:02 tb Exp $  */
 /*     $NetBSD: screen.c,v 1.4 1995/04/29 01:11:36 mycroft Exp $       */
 
 /*-
@@ -65,7 +65,7 @@ static void   stopset(int);
 /*
  * Capabilities from TERMCAP.
  */
-char   PC, *BC, *UP;           /* tgoto requires globals: ugh! */
+extern char    PC, *BC, *UP;           /* tgoto requires globals: ugh! */
 
 static char
        *bcstr,                 /* backspace char */