mirror of https://github.com/mkerrisk/man-pages
makedev.3: glibc has deprecated exposing the definitions via <sys/types.h>
Compile warning with glibc 2.25: warning: In the GNU C Library, "makedev" is defined by <sys/sysmacros.h>. For historical compatibility, it is currently defined by <sys/types.h> as well, but we plan to remove this soon. To use "makedev", include <sys/sysmacros.h> directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including <sys/types.h>. Background: glibc commit dbab6577c6684c62bd2521c1c29dc25c3cac966f Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
54d12ec932
commit
1e50980d0f
|
@ -94,9 +94,10 @@ and
|
|||
The latter names are exported, but the traditional names are more portable.
|
||||
.PP
|
||||
The BSDs expose the definitions for these macros via
|
||||
.IR <sys/types.h> ,
|
||||
and glibc also exposes definitions for these macros from that
|
||||
header file if suitable feature test macros are defined.
|
||||
.IR <sys/types.h> .
|
||||
glibc also exposes definitions for these macros from that
|
||||
header file if suitable feature test macros are defined,
|
||||
but this is deprecated and will be removed in the future.
|
||||
.SH SEE ALSO
|
||||
.BR mknod (2),
|
||||
.BR stat (2)
|
||||
|
|
Loading…
Reference in New Issue