diff options
author | steve <steve@FreeBSD.org> | 1999-09-20 09:23:11 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-09-20 09:23:11 +0800 |
commit | edde4acf11caf0ed7d30ee1eaadb66d550af4c3a (patch) | |
tree | 67026fa33a7c1b127d66b27a580390341c653b6b /net/mpd/files | |
parent | c5c76493db911a0788a18d8feed134b13799bbdf (diff) | |
download | freebsd-ports-gnome-edde4acf11caf0ed7d30ee1eaadb66d550af4c3a.tar.gz freebsd-ports-gnome-edde4acf11caf0ed7d30ee1eaadb66d550af4c3a.tar.zst freebsd-ports-gnome-edde4acf11caf0ed7d30ee1eaadb66d550af4c3a.zip |
Toss in an ugly hack to cope with the fact that va_list is a non-scalar
on FreeBSD/Alpha.
Diffstat (limited to 'net/mpd/files')
-rw-r--r-- | net/mpd/files/patch-ab | 24 |
1 files changed, 24 insertions, 0 deletions
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); |