diff --git a/Mac/Compat/getwd.c b/Mac/Compat/getwd.c index a783ff606a5..e9a54552981 100644 --- a/Mac/Compat/getwd.c +++ b/Mac/Compat/getwd.c @@ -28,7 +28,7 @@ */ #include "macdefs.h" -#ifdef MPW +#if defined(MPW) || defined(__MWERKS__) #include #endif diff --git a/Mac/Include/macdefs.h b/Mac/Include/macdefs.h index c1e8a6e2753..6a5682f8b62 100644 --- a/Mac/Include/macdefs.h +++ b/Mac/Include/macdefs.h @@ -11,6 +11,9 @@ #include #endif +#ifdef __MWERKS__ +#include "errno_unix.h" +#endif #include #include