diff --git a/src/tiff/tiffcomp.h b/src/tiff/tiffcomp.h index fbe1c0ebb1..bb5fb8c7e3 100644 --- a/src/tiff/tiffcomp.h +++ b/src/tiff/tiffcomp.h @@ -85,6 +85,8 @@ #define HAVE_UNISTD_H 0 #elif defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows) #define BSDTYPES +#elif defined(__DJGPP__) +#define BSDTYPES #elif defined(OS2_16) || defined(OS2_32) #define BSDTYPES #elif defined(__acornriscos) diff --git a/src/tiff/tiffiop.h b/src/tiff/tiffiop.h index 91264785f3..2697807129 100644 --- a/src/tiff/tiffiop.h +++ b/src/tiff/tiffiop.h @@ -34,7 +34,7 @@ * a port.h file that reflects the system capabilities. * Doing this obviates all the dreck done in tiffcomp.h. */ -#if defined(unix) || defined(__unix) +#if (defined(unix) || defined(__unix)) && !defined(__DJGPP__) #include "port.h" #include "tiffconf.h" #else