Date: Mon, 30 Apr 2012 23:12:16 +0000 (UTC) From: Robert Millan <rmh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r234856 - head/cddl/compat/opensolaris/include Message-ID: <201204302312.q3UNCG8p089972@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rmh Date: Mon Apr 30 23:12:16 2012 New Revision: 234856 URL: http://svn.freebsd.org/changeset/base/234856 Log: GNU/kFreeBSD portability fix. This glue <stdlib.h> overrides header protection in the system-wide version of <stdlib.h> by wrapping the #include_next <stdlib.h> within the scope of its own header protection. On FreeBSD this has no effect, since both header protections are equivalent. However the GNU version of <stdlib.h> implements a special header protection mechanism which allows it to be included multiple times (in different modes). Simply by moving the #include_next off the header protection, we allow system-wide <stdlib.h> to implement its own protection policy, whichever that may be. Modified: head/cddl/compat/opensolaris/include/stdlib.h Modified: head/cddl/compat/opensolaris/include/stdlib.h ============================================================================== --- head/cddl/compat/opensolaris/include/stdlib.h Mon Apr 30 22:46:09 2012 (r234855) +++ head/cddl/compat/opensolaris/include/stdlib.h Mon Apr 30 23:12:16 2012 (r234856) @@ -27,11 +27,11 @@ * */ +#include_next <stdlib.h> + #ifndef _COMPAT_OPENSOLARIS_STDLIB_H_ #define _COMPAT_OPENSOLARIS_STDLIB_H_ -#include_next <stdlib.h> - #define getexecname getprogname #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204302312.q3UNCG8p089972>