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