[3.6] bpo-31343: Include sys/sysmacros.h (GH-3318) (#3344)

Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C libray
plans to remove the functions from sys/types.h.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 75b9618)
This commit is contained in:
Christian Heimes 2017-09-05 17:09:12 +02:00 committed by GitHub
parent 8704d5439c
commit 02854dab62
6 changed files with 83 additions and 5 deletions

View file

@ -55,6 +55,11 @@ corresponding Unix manual entries for more information on calls.");
#include <sys/uio.h>
#endif
#ifdef HAVE_SYS_SYSMACROS_H
/* GNU C Library: major(), minor(), makedev() */
#include <sys/sysmacros.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */