Patchwork disable __size_t macro on GNU/kFreeBSD

login
register
mail settings
Submitter Robert Millan
Date Jan. 29, 2012, 2:33 a.m.
Message ID <CAOfDtXN6kZ3DNYZ6d+puubQDUug40KeJSCKdMZ=83nN1tjOMfw@mail.gmail.com>
Download mbox | patch
Permalink /patch/138423/
State New
Headers show

Comments

Robert Millan - Jan. 29, 2012, 2:33 a.m.
Hi,

Please consider this patch to stddef.h. GNU/kFreeBSD has the same
problem with __size_t as FreeBSD does, since it inherits many kernel
headers from FreeBSD.

Patch

Index: ginclude/stddef.h
===================================================================
--- ginclude/stddef.h	(revision 183670)
+++ ginclude/stddef.h	(working copy)
@@ -200,7 +200,7 @@ 
 #define ___int_size_t_h
 #define _GCC_SIZE_T
 #define _SIZET_
-#if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
+#if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) || defined(__FreeBSD_kernel__)
 /* __size_t is a typedef on FreeBSD 5!, must not trash it. */
 #else
 #define __size_t