diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-28 11:12:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 11:12:16 (GMT) |
commit | 0e3cf5bcaca7cc98fd77b43d74e51a47987f5089 (patch) | |
tree | abaf373c39e3f269a3de7a6ca28f462b06a648de /Modules/posixmodule.c | |
parent | 72073ca5603bbd8d8a00b51fe508d3465f95f634 (diff) | |
download | cpython-0e3cf5bcaca7cc98fd77b43d74e51a47987f5089.zip cpython-0e3cf5bcaca7cc98fd77b43d74e51a47987f5089.tar.gz cpython-0e3cf5bcaca7cc98fd77b43d74e51a47987f5089.tar.bz2 |
[3.12] bpo-11102: Make configure enable major(), makedev(), and minor() on HP-UX (GH-19856) (GH-113540)
Always include <sys/types.h> before <sys/sysmacros.h>.
(cherry picked from commit f108468970bf4e70910862476900f924fb701399)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 0ac5a8d..3468ab4 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -226,15 +226,16 @@ corresponding Unix manual entries for more information on calls."); # include <sys/uio.h> #endif +#ifdef HAVE_SYS_TYPES_H +/* Should be included before <sys/sysmacros.h> on HP-UX v3 */ +# include <sys/types.h> +#endif /* HAVE_SYS_TYPES_H */ + #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 */ - #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif /* HAVE_SYS_STAT_H */ |