From dbab6577c6684c62bd2521c1c29dc25c3cac966f Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 10 May 2016 11:07:42 -0400 Subject: Deprecate inclusion of by The macros defined by are not part of POSIX nor XSI, and their names frequently collide with user code; see for instance glibc bug 19239 and Red Hat bug 130601. includes under _GNU_SOURCE, and C++ code presently cannot avoid being compiled under _GNU_SOURCE, exacerbating the problem. * NEWS: Inclusion of by is deprecated. * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined, define major, minor, and makedev to issue deprecation warnings on use. If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress previously-activated deprecation warnings for these macros and prevent subsequent inclusions of this header from having any effect. * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before including , and undefine it again afterward. --- NEWS | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 495bde0..25c771d 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,16 @@ Version 2.25 from that TS. Note that most features from that TS are not supported by the GNU C Library. +* The inclusion of by is deprecated. This + means that in a future release, the macros “major”, “minor”, and “makedev” + will only be available from . + + These macros are not part of POSIX nor XSI, and their names frequently + collide with user code; see for instance glibc bug 19239 and Red Hat bug + 130601. includes under _GNU_SOURCE, and C++ code + presently cannot avoid being compiled under _GNU_SOURCE, exacerbating the + problem. + Security related changes: [Add security related changes here] -- cgit v1.1