From e16deca62e16f645213dffd4ecd1153c37765f17 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Wed, 7 Feb 2018 15:45:58 -0500 Subject: [BZ #19239] Don't include sys/sysmacros.h from sys/types.h. This completes the deprecation and removal of this inclusion, which was begun in the 2.25 release. * posix/sys/types.h: Don't include sys/sysmacros.h. * misc/sys/sysmacros.h: Remove the conditional deprecation warnings for the macros defined by this header. --- posix/sys/types.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'posix') diff --git a/posix/sys/types.h b/posix/sys/types.h index e8d51a1..db524d6 100644 --- a/posix/sys/types.h +++ b/posix/sys/types.h @@ -194,15 +194,6 @@ typedef int register_t __attribute__ ((__mode__ (__word__))); /* It also defines `fd_set' and the FD_* macros for `select'. */ # include - -/* 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 directly. Code that does - not need these macros should #undef them after including this header. */ -# define __SYSMACROS_DEPRECATED_INCLUSION -# include -# undef __SYSMACROS_DEPRECATED_INCLUSION #endif /* Use misc. */ -- cgit v1.1