From 9972b9e66b6378f4c39a5f42a848f1080ab3e3f0 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 2 Aug 2016 18:37:28 -0400 Subject: [PATCH] solaris --- mpw/environment.rl | 1 + mpw/mpw.cpp | 2 +- mpw/mpw_access.cpp | 3 +-- mpw/mpw_close.cpp | 2 +- mpw/mpw_io.cpp | 2 +- mpw/mpw_ioctl.cpp | 3 +-- toolbox/realpath.c | 7 +++++-- 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/mpw/environment.rl b/mpw/environment.rl index 41a3c1f..b0144ca 100644 --- a/mpw/environment.rl +++ b/mpw/environment.rl @@ -27,6 +27,7 @@ #include #include #include +#include #include #include diff --git a/mpw/mpw.cpp b/mpw/mpw.cpp index dc265fb..ac8920f 100644 --- a/mpw/mpw.cpp +++ b/mpw/mpw.cpp @@ -46,7 +46,7 @@ #include #include -#include +#include #include #include diff --git a/mpw/mpw_access.cpp b/mpw/mpw_access.cpp index 5e1b2e2..cacf0cd 100644 --- a/mpw/mpw_access.cpp +++ b/mpw/mpw_access.cpp @@ -40,11 +40,10 @@ #include #include #include -#include #include #include -#include +#include #include #include diff --git a/mpw/mpw_close.cpp b/mpw/mpw_close.cpp index 1d8ac87..c7a3efe 100644 --- a/mpw/mpw_close.cpp +++ b/mpw/mpw_close.cpp @@ -36,7 +36,7 @@ #include #include -#include +#include #include diff --git a/mpw/mpw_io.cpp b/mpw/mpw_io.cpp index 80d9412..2f15619 100644 --- a/mpw/mpw_io.cpp +++ b/mpw/mpw_io.cpp @@ -38,7 +38,7 @@ #include #include -#include +#include #include diff --git a/mpw/mpw_ioctl.cpp b/mpw/mpw_ioctl.cpp index beeb8ab..dac56e4 100644 --- a/mpw/mpw_ioctl.cpp +++ b/mpw/mpw_ioctl.cpp @@ -40,11 +40,10 @@ #include #include #include -#include #include #include -#include +#include #include diff --git a/toolbox/realpath.c b/toolbox/realpath.c index 42e6bae..9d06d1b 100644 --- a/toolbox/realpath.c +++ b/toolbox/realpath.c @@ -29,8 +29,8 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)realpath.c 8.1 (Berkeley) 2/16/94"; #endif /* LIBC_SCCS and not lint */ -#include - +//#include +#include //#include "namespace.h" #include #include @@ -42,6 +42,9 @@ static char sccsid[] = "@(#)realpath.c 8.1 (Berkeley) 2/16/94"; //#include "un-namespace.h" #define FS_SPEC +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif /* * Find the real name of path, by removing all ".", ".." and symlink