]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sys/types.h: drop sys/sysmacros.h include
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Dec 2015 22:54:31 +0000 (17:54 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 9 Feb 2017 06:00:55 +0000 (01:00 -0500)
We want to break apart this include path due to namespace pollution.
https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html

posix/sys/types.h

index b3a27c51f0e6255dfa627bc6dc01dd00d8c28bd8..788364a299c9733d8b8d81c85e4667f3fc1f0325 100644 (file)
@@ -216,15 +216,6 @@ typedef int register_t __attribute__ ((__mode__ (__word__)));
 
 /* It also defines `fd_set' and the FD_* macros for `select'.  */
 # include <sys/select.h>
-
-/* BSD defines `major', `minor', and `makedev' in this header.
-   However, these symbols are likely to collide with user code, so we are
-   going to stop defining them here in an upcoming release.  Code that needs
-   these macros should include <sys/sysmacros.h> directly.  Code that does
-   not need these macros should #undef them after including this header.  */
-# define __SYSMACROS_DEPRECATED_INCLUSION
-# include <sys/sysmacros.h>
-# undef __SYSMACROS_DEPRECATED_INCLUSION
 #endif /* Use misc.  */