diff --git a/include/types.h b/include/types.h index 6fd4c4553..0a7179af6 100644 --- a/include/types.h +++ b/include/types.h @@ -17,11 +17,7 @@ #include #include #include - -// workaround to get the rid of "redefinition of typedef 'Byte'" build warning -#if !defined (__APPLE__) -#include "zlib.h" -#endif +#include #if !defined(__MACTYPES__) #define __MACTYPES__ diff --git a/src/terminal.c b/src/terminal.c index 1f7e58538..0898ad47b 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -490,7 +490,7 @@ int tty_fix () } #endif -#if defined (__APPLE__) || defined (__FreeBSD__) +#if defined (__APPLE__) static struct termios savemodes; static int havemodes = 0;