bpo-11102: Make configure find major(), makedev(), and minor() on HP-UX

sys/types.h must be included before sys/sysmacros.h
This commit is contained in:
Zackery Spytz 2020-05-01 23:45:01 -06:00
parent 02047265eb
commit 8ae9725b01
3 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,2 @@
The :func:`os.major`, :func:`os.makedev`, and :func:`os.minor` functions are
now available on HP-UX v3.

1
configure vendored
View File

@ -13175,6 +13175,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
#if defined(MAJOR_IN_MKDEV)
#include <sys/mkdev.h>
#elif defined(MAJOR_IN_SYSMACROS)
#include <sys/types.h>
#include <sys/sysmacros.h>
#else
#include <sys/types.h>

View File

@ -3989,6 +3989,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#if defined(MAJOR_IN_MKDEV)
#include <sys/mkdev.h>
#elif defined(MAJOR_IN_SYSMACROS)
#include <sys/types.h>
#include <sys/sysmacros.h>
#else
#include <sys/types.h>