diff options
author | Christian Heimes <christian@python.org> | 2017-09-05 15:09:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 15:09:12 (GMT) |
commit | 02854dab6231d726fa2c63d44ab25598988c44f4 (patch) | |
tree | be341819fb8e0c77cb0865a0f256327a64137112 /Modules | |
parent | 8704d5439c7de8b471921e0ebcb6a62ebb6fe1a1 (diff) | |
download | cpython-02854dab6231d726fa2c63d44ab25598988c44f4.zip cpython-02854dab6231d726fa2c63d44ab25598988c44f4.tar.gz cpython-02854dab6231d726fa2c63d44ab25598988c44f4.tar.bz2 |
[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)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ead2ea9..ee27fa4 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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 */ |