mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Toss in an ugly hack to cope with the fact that va_list is a non-scalar
on FreeBSD/Alpha.
This commit is contained in:
parent
ca130e3e39
commit
292c6a5bc9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21790
24
net/mpd/files/patch-ab
Normal file
24
net/mpd/files/patch-ab
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user