Module Name: src Committed By: kamil Date: Tue Feb 27 12:20:35 UTC 2018
Modified Files: src/tests/lib/libc/sys: t_ucontext.c Log Message: 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>. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/sys/t_ucontext.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/sys/t_ucontext.c diff -u src/tests/lib/libc/sys/t_ucontext.c:1.4 src/tests/lib/libc/sys/t_ucontext.c:1.5 --- src/tests/lib/libc/sys/t_ucontext.c:1.4 Tue Feb 27 11:15:53 2018 +++ src/tests/lib/libc/sys/t_ucontext.c Tue Feb 27 12:20:35 2018 @@ -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)