From 0214561bf12b92f26daa81ca0fd0882c5f838aaa Mon Sep 17 00:00:00 2001 From: cracauer Date: Thu, 20 Apr 2000 11:39:11 +0000 Subject: Rename the trace() function (that is build only in the -DDEBUG=2 case), so that it doesn't clash with the ncurses function of the same name when linking statically with -ltermcap. The linker only complains when -static is used, and it is not clear whether this is a bug. PR: bin/18104 Submitted by: Anatoly Vorobey --- bin/sh/show.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/sh/show.c') diff --git a/bin/sh/show.c b/bin/sh/show.c index a784985..4abc4c0 100644 --- a/bin/sh/show.c +++ b/bin/sh/show.c @@ -51,6 +51,7 @@ static const char rcsid[] = #if DEBUG == 2 #include #endif +#include #include "shell.h" #include "parser.h" @@ -304,9 +305,9 @@ trputc(c) void #ifdef __STDC__ -trace(const char *fmt, ...) +sh_trace(const char *fmt, ...) #else -trace(va_alist) +sh_trace(va_alist) va_dcl #endif { -- cgit v1.1