http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48851
m...@gcc.gnu.org <mrs at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mrs at gcc dot gnu.org --- Comment #22 from mrs at gcc dot gnu.org <mrs at gcc dot gnu.org> 2011-07-12 18:03:23 UTC --- Try: Doing diffs in fixincludes: --- fixincludes/inclhack.def.~1~ 2011-06-15 18:47:49.000000000 -0700 +++ fixincludes/inclhack.def 2011-07-12 11:01:35.000000000 -0700 @@ -4417,6 +4417,7 @@ fix = { files = sys/types.h; /* avoid changing C++ friendly NULL */ bypass = __cplusplus; + bypass = __null; select = "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)"; c_fix = format; c_fix_arg = "#define NULL 0"; -------------- and let me know if it works. If so, I'd propose this.