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
This commit is contained in:
Ruslan Bukin 2018-07-03 13:53:54 +00:00
parent f41c578fed
commit ab40f58ccf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335888
3 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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>

View file

@ -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>