kern/164656: Add size_t declaration to ucontext.h of 10-CURRENT
Jyun-Yan You
jyyou at cs.nctu.edu.tw
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
>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 at 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:
More information about the freebsd-bugs
mailing list