#endif
#if defined(__MWERKS__) || defined(THINK_C)
+#ifdef __MACH__
+#include <sys/types.h>
+#else
#include <unix.h>
#include <math.h>
#endif
+#endif
#include <stdio.h>
#define BSDTYPES
#define HAVE_UNISTD_H 0
#elif defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
-# if !defined(__MINGW32__) /* GRG */
-# define BSDTYPES
-# endif
+#define BSDTYPES
+#elif defined(__DJGPP__)
+#define BSDTYPES
#elif defined(OS2_16) || defined(OS2_32)
#define BSDTYPES
#elif defined(__acornriscos)