Include <inttypes.h> in t_ucontext.c
The <inttypes.h> user-land header is required for PRI types. We were including indirectly <sys/inttypes.h> through <sys/*.h> sources, and this worked for most of the ports. This fixes indirectly a build for MIPS (tested ports: arc and hpcmips), where PRI types (PRIxREGISTER) were undefined. Noted by <uwe>.
This commit is contained in:
parent
8d441d9cea
commit
5198f250f5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: t_ucontext.c,v 1.4 2018/02/27 11:15:53 kamil Exp $ */
|
||||
/* $NetBSD: t_ucontext.c,v 1.5 2018/02/27 12:20:35 kamil Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -29,11 +29,12 @@
|
|||
#include <sys/cdefs.h>
|
||||
__COPYRIGHT("@(#) Copyright (c) 2008\
|
||||
The NetBSD Foundation, inc. All rights reserved.");
|
||||
__RCSID("$NetBSD: t_ucontext.c,v 1.4 2018/02/27 11:15:53 kamil Exp $");
|
||||
__RCSID("$NetBSD: t_ucontext.c,v 1.5 2018/02/27 12:20:35 kamil Exp $");
|
||||
|
||||
#include <atf-c.h>
|
||||
#include <stdio.h>
|
||||
#include <ucontext.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
ATF_TC(ucontext_basic);
|
||||
ATF_TC_HEAD(ucontext_basic, tc)
|
||||
|
|
Loading…
Reference in New Issue