summaryrefslogtreecommitdiff
path: root/net/mpd
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-09-20 01:23:11 +0000
committerSteve Price <steve@FreeBSD.org>1999-09-20 01:23:11 +0000
commit292c6a5bc93f13117ad278507d96b2b18acdfabc (patch)
treec53fe5cdaf472a17a1207845161835cb22ec2290 /net/mpd
parentNeed to include sys/types.h for u_char and friends on FreeBSD/Alpha. (diff)
Toss in an ugly hack to cope with the fact that va_list is a non-scalar
on FreeBSD/Alpha.
Notes
Notes: svn path=/head/; revision=21790
Diffstat (limited to 'net/mpd')
-rw-r--r--net/mpd/files/patch-ab24
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);