git: backgammon(6): Avoid symbol issue with ncurses lib.
Rimvydas Jasinskas
zrj at crater.dragonflybsd.org
Fri Nov 17 03:11:45 PST 2017
commit 06e4c4ec6a4b5ac39b1d52c86457c5a0b2f2bacb
Author: zrj <rimvydas.jasinskas at gmail.com>
Date: Fri Nov 17 11:20:44 2017 +0200
backgammon(6): Avoid symbol issue with ncurses lib.
The backgammon(6) has: back.k: extern int raw;
while in ncurses tinfo/lib_raw.c: int raw(void){}.
This breaks -flto -static link against LTO'ed libncurses.a.
So just rename backgammon global raw to bgraw.
Just for the fun of it, note that init.c: struct termios bgraw;
NetBSD already have it fixed in games/backgammon/.
Also still not clear how to do with c5e1790f6b.
Summary of changes:
games/backgammon/backgammon/main.c | 6 +++---
games/backgammon/backgammon/move.c | 4 ++--
games/backgammon/backgammon/text.c | 4 ++--
games/backgammon/common_source/back.h | 2 +-
games/backgammon/common_source/board.c | 2 +-
games/backgammon/common_source/init.c | 2 +-
games/backgammon/teachgammon/teach.c | 4 ++--
games/backgammon/teachgammon/ttext2.c | 4 ++--
8 files changed, 14 insertions(+), 14 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/06e4c4ec6a4b5ac39b1d52c86457c5a0b2f2bacb
--
DragonFly BSD source repository
More information about the Commits
mailing list