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:
parent
02047265eb
commit
8ae9725b01
|
@ -0,0 +1,2 @@
|
|||
The :func:`os.major`, :func:`os.makedev`, and :func:`os.minor` functions are
|
||||
now available on HP-UX v3.
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue