disable __size_t macro on GNU/kFreeBSD

Submitted by Robert Millan on Jan. 29, 2012, 2:33 a.m.

Details

Message ID CAOfDtXN6kZ3DNYZ6d+puubQDUug40KeJSCKdMZ=83nN1tjOMfw@mail.gmail.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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