Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2012 13:43:25 +0800 (CST)
From:      Jyun-Yan You <jyyou@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/164656: Add size_t declaration to ucontext.h of 10-CURRENT
Message-ID:  <201201310543.q0V5hPOn019008@csduty.cs.nctu.edu.tw>
Resent-Message-ID: <201201310550.q0V5oBG4048204@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201310543.q0V5hPOn019008>