Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit656eb16

Browse files
miss-islingtonZackerySpytzserhiy-storchaka
authored
[3.11]bpo-11102: Make configure enable major(), makedev(), and minor() on HP-UX (GH-19856) (GH-113541)
Always include <sys/types.h> before <sys/sysmacros.h>.(cherry picked from commitf108468)Co-authored-by: Zackery Spytz <zspytz@gmail.com>Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parenta486d10 commit656eb16

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The:func:`os.major`,:func:`os.makedev`, and:func:`os.minor` functions are
2+
now available on HP-UX v3.

‎Modules/posixmodule.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,16 @@ corresponding Unix manual entries for more information on calls.");
220220
# include<sys/uio.h>
221221
#endif
222222

223+
#ifdefHAVE_SYS_TYPES_H
224+
/* Should be included before <sys/sysmacros.h> on HP-UX v3 */
225+
# include<sys/types.h>
226+
#endif/* HAVE_SYS_TYPES_H */
227+
223228
#ifdefHAVE_SYS_SYSMACROS_H
224229
/* GNU C Library: major(), minor(), makedev() */
225230
# include<sys/sysmacros.h>
226231
#endif
227232

228-
#ifdefHAVE_SYS_TYPES_H
229-
# include<sys/types.h>
230-
#endif/* HAVE_SYS_TYPES_H */
231-
232233
#ifdefHAVE_SYS_STAT_H
233234
# include<sys/stat.h>
234235
#endif/* HAVE_SYS_STAT_H */

‎configure

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4995,6 +4995,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
49954995
#if defined(MAJOR_IN_MKDEV)
49964996
#include <sys/mkdev.h>
49974997
#elif defined(MAJOR_IN_SYSMACROS)
4998+
#include <sys/types.h>
49984999
#include <sys/sysmacros.h>
49995000
#else
50005001
#include <sys/types.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp