Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2018 13:53:54 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335888 - in head: contrib/blacklist/bin lib/libpjdlog sbin/hastd
Message-ID:  <201807031353.w63DrsAa079940@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Tue Jul  3 13:53:54 2018
New Revision: 335888
URL: https://svnweb.freebsd.org/changeset/base/335888

Log:
  o Ensure va_list is declared by including stdarg.h.
  o Also move printf.h to go after it since it does require declaration
    of va_list.
  
  This fixes build with latest RISC-V GNU Toolchain with GCC 8.1
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/contrib/blacklist/bin/blacklistctl.c
  head/lib/libpjdlog/pjdlog.c
  head/sbin/hastd/pjdlog.c

Modified: head/contrib/blacklist/bin/blacklistctl.c
==============================================================================
--- head/contrib/blacklist/bin/blacklistctl.c	Tue Jul  3 10:51:59 2018	(r335887)
+++ head/contrib/blacklist/bin/blacklistctl.c	Tue Jul  3 13:53:54 2018	(r335888)
@@ -35,6 +35,7 @@
 #include <sys/cdefs.h>
 __RCSID("$NetBSD: blacklistctl.c,v 1.21 2016/11/02 03:15:07 jnemeth Exp $");
 
+#include <stdarg.h>
 #include <stdio.h>
 #include <time.h>
 #ifdef HAVE_LIBUTIL_H

Modified: head/lib/libpjdlog/pjdlog.c
==============================================================================
--- head/lib/libpjdlog/pjdlog.c	Tue Jul  3 10:51:59 2018	(r335887)
+++ head/lib/libpjdlog/pjdlog.c	Tue Jul  3 13:53:54 2018	(r335888)
@@ -43,8 +43,8 @@ __FBSDID("$FreeBSD$");
 #include <errno.h>
 #include <libutil.h>
 #include <limits.h>
-#include <printf.h>
 #include <stdarg.h>
+#include <printf.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: head/sbin/hastd/pjdlog.c
==============================================================================
--- head/sbin/hastd/pjdlog.c	Tue Jul  3 10:51:59 2018	(r335887)
+++ head/sbin/hastd/pjdlog.c	Tue Jul  3 13:53:54 2018	(r335888)
@@ -41,8 +41,8 @@ __FBSDID("$FreeBSD$");
 #include <assert.h>
 #include <errno.h>
 #include <libutil.h>
-#include <printf.h>
 #include <stdarg.h>
+#include <printf.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807031353.w63DrsAa079940>