Skip to content

Commit 2e91697

Browse files
Always include <sys/types.h> before <sys/sysmacros.h>.
1 parent 818f5e2 commit 2e91697

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Modules/posixmodule.c

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

239+
#ifdef HAVE_SYS_TYPES_H
240+
/* Should be included before <sys/sysmacros.h> on HP-UX v3 */
241+
# include <sys/types.h>
242+
#endif /* HAVE_SYS_TYPES_H */
243+
239244
#ifdef HAVE_SYS_SYSMACROS_H
240245
/* GNU C Library: major(), minor(), makedev() */
241246
# include <sys/sysmacros.h>
242247
#endif
243248

244-
#ifdef HAVE_SYS_TYPES_H
245-
# include <sys/types.h>
246-
#endif /* HAVE_SYS_TYPES_H */
247-
248249
#ifdef HAVE_SYS_STAT_H
249250
# include <sys/stat.h>
250251
#endif /* HAVE_SYS_STAT_H */

0 commit comments

Comments
 (0)