From 292c6a5bc93f13117ad278507d96b2b18acdfabc Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 20 Sep 1999 01:23:11 +0000 Subject: Toss in an ugly hack to cope with the fact that va_list is a non-scalar on FreeBSD/Alpha. --- net/mpd/files/patch-ab | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 net/mpd/files/patch-ab (limited to 'net') diff --git a/net/mpd/files/patch-ab b/net/mpd/files/patch-ab new file mode 100644 index 000000000000..d0215e9ab532 --- /dev/null +++ b/net/mpd/files/patch-ab @@ -0,0 +1,24 @@ +--- src/log.c.orig Sun Sep 19 17:44:02 1999 ++++ src/log.c Sun Sep 19 18:07:49 1999 +@@ -271,7 +271,21 @@ + va_start(args, fmt); + LogTimeStamp(logprintf); + vlogprintf(fmt, args); ++#if defined(__FreeBSD__) && defined(__alpha__) ++ /* ++ * This is an ugly hack! On FreeBSD/Alpha va_list is a non-scalar ++ * type so to accommodate logging a simple string we steal a few ++ * lines from vlogprintf below. Ick! ++ */ ++#ifdef SYSLOG_FACILITY ++ syslog(SYSLOG_FACILITY|LOG_INFO, "\n\n"); ++#else ++ fprintf(logfp, "\n\n"); ++ fflush(logfp); ++#endif ++#else + vlogprintf("\n", NULL); ++#endif + if (gLogOptions & LG_CONSOLE) + { + vfprintf(stdout, fmt, args); -- cgit v1.2.3