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:
br 2018-07-03 13:53:54 +00:00
parent d3383ad68a
commit 99b08f2273
3 changed files with 3 additions and 2 deletions

View File

@ -35,6 +35,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
__RCSID("$NetBSD: blacklistctl.c,v 1.21 2016/11/02 03:15:07 jnemeth Exp $"); __RCSID("$NetBSD: blacklistctl.c,v 1.21 2016/11/02 03:15:07 jnemeth Exp $");
#include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#ifdef HAVE_LIBUTIL_H #ifdef HAVE_LIBUTIL_H

View File

@ -43,8 +43,8 @@ __FBSDID("$FreeBSD$");
#include <errno.h> #include <errno.h>
#include <libutil.h> #include <libutil.h>
#include <limits.h> #include <limits.h>
#include <printf.h>
#include <stdarg.h> #include <stdarg.h>
#include <printf.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -41,8 +41,8 @@ __FBSDID("$FreeBSD$");
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <libutil.h> #include <libutil.h>
#include <printf.h>
#include <stdarg.h> #include <stdarg.h>
#include <printf.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>