Skip to content

Commit

Permalink
Always include <sys/types.h> before <sys/sysmacros.h>.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Dec 27, 2023
1 parent 818f5e2 commit 2e91697
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,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 */
Expand Down

0 comments on commit 2e91697

Please sign in to comment.