kern/164656: Add size_t declaration to ucontext.h of 10-CURRENT

Jyun-Yan You jyyou at
Tue Jan 31 05:50:12 UTC 2012

>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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 31 05:50:11 UTC 2012
>Originator:     Jyun-Yan You
>Release:        FreeBSD 8.2-RELEASE-p3 amd64
System: FreeBSD 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 root at amd64

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.


--- 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
+typedef	__size_t	size_t;
 int	getcontext(ucontext_t *);
--- ucontext.h.diff ends here ---


More information about the freebsd-bugs mailing list