From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 31 05:50:12 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A5AD106567A for ; Tue, 31 Jan 2012 05:50:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C94B78FC20 for ; Tue, 31 Jan 2012 05:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0V5oBhT048205 for ; Tue, 31 Jan 2012 05:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0V5oBG4048204; Tue, 31 Jan 2012 05:50:11 GMT (envelope-from gnats) Resent-Date: Tue, 31 Jan 2012 05:50:11 GMT Resent-Message-Id: <201201310550.q0V5oBG4048204@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jyun-Yan You Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B608F1065673 for ; Tue, 31 Jan 2012 05:43:27 +0000 (UTC) (envelope-from jyyou@cs.nctu.edu.tw) Received: from csmailer.cs.nctu.edu.tw (csmailer.cs.nctu.edu.tw [140.113.235.130]) by mx1.freebsd.org (Postfix) with ESMTP id 734858FC16 for ; Tue, 31 Jan 2012 05:43:27 +0000 (UTC) Received: from csmailer.cs.nctu.edu.tw (localhost [127.0.0.1]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 0B25E91A for ; Tue, 31 Jan 2012 13:40:18 +0800 (CST) Received: from csduty.cs.nctu.edu.tw (csduty [140.113.235.102]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 0183D919 for ; Tue, 31 Jan 2012 13:40:18 +0800 (CST) Received: (from jyyou@localhost) by csduty.cs.nctu.edu.tw (8.14.4/8.14.4/Submit) id q0V5hPOn019008; Tue, 31 Jan 2012 13:43:25 +0800 (CST) (envelope-from jyyou) Message-Id: <201201310543.q0V5hPOn019008@csduty.cs.nctu.edu.tw> Date: Tue, 31 Jan 2012 13:43:25 +0800 (CST) From: Jyun-Yan You To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/164656: Add size_t declaration to ucontext.h of 10-CURRENT X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jyun-Yan You List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2012 05:50:12 -0000 >Number: 164656 >Category: kern >Synopsis: Add size_t declaration to ucontext.h of 10-CURRENT >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 31 05:50:11 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jyun-Yan You >Release: FreeBSD 8.2-RELEASE-p3 amd64 >Organization: >Environment: System: FreeBSD csduty.cs.nctu.edu.tw 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: ucontext.h does not include any header file that defines size_t. If we write a program that includes sys/ucontext.h, it may cause compilation errors. ports/164654 is the real case. >How-To-Repeat: >Fix: --- ucontext.h.diff begins here --- --- sys/sys/ucontext.h.orig 2012-01-31 12:50:57.702804441 +0800 +++ sys/sys/ucontext.h 2012-01-31 12:51:26.217639882 +0800 @@ -69,6 +69,11 @@ #ifndef _KERNEL +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED +#endif + __BEGIN_DECLS int getcontext(ucontext_t *); --- ucontext.h.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: