From 10b48d1f92ea9ed1eeeab149d9ec7c51d69c1e55 Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 5 Jun 2007 19:35:13 +0000 Subject: [PATCH] on Linux 2.0, defines makedev(), but on Solaris, both it and do it, where the latter seems to contain the newer ones, it undefines them before redefining too, so move its inclusion up a little --- sh.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sh.h b/sh.h index 3714a1f..a7059cd 100644 --- a/sh.h +++ b/sh.h @@ -8,7 +8,7 @@ /* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */ /* $OpenBSD: tty.h,v 1.5 2004/12/20 11:34:26 otto Exp $ */ -#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.139 2007/06/04 21:33:28 tg Exp $" +#define MKSH_SH_H_ID "$MirOS: src/bin/mksh/sh.h,v 1.140 2007/06/05 19:35:13 tg Exp $" #define MKSH_VERSION "R29 2007/06/04" #if HAVE_SYS_PARAM_H @@ -18,6 +18,9 @@ #include #include #include +#if HAVE_SYS_SYSMACROS_H +#include +#endif #if HAVE_SYS_MKDEV_H #include #endif @@ -26,9 +29,6 @@ #endif #include #include -#if HAVE_SYS_SYSMACROS_H -#include -#endif #include #include #include