$FreeBSD: ports/irc/undernet-ircu/files/patch-ircd_ircd__log.c,v 1.2 2005/01/21 22:45:35 krion Exp $

--- ircd/ircd_log.c.orig
+++ ircd/ircd_log.c
@@ -49,6 +49,7 @@
 #include <syslog.h>
 #include <time.h>
 #include <unistd.h>
+#include <osreldate.h>
 
 #define LOG_BUFSIZE 2048 
 
@@ -395,7 +396,11 @@
 
   /* Build the basic log string */
   vd.vd_format = fmt;
+  #if __FreeBSD_version > 500000 && defined(__amd64__)
+  va_copy(vd.vd_args, vl);
+  #else
   vd.vd_args = vl;
+  #endif
 
   /* save the length for writev */
   /* Log format: "SYSTEM [SEVERITY]: log message" */


syntax highlighted by Code2HTML, v. 0.9.1