--- tcsh-6.19.00.orig/sh.h 2015-05-10 15:29:28.000000000 +0200 +++ tcsh-6.19.00/sh.h 2015-11-07 23:06:35.000000000 +0100 @@ -366,7 +366,7 @@ typedef long tcsh_number_t; # include #endif /* (!FIOCLEX && SUNOS4) || (SYSVREL == 4 && !_SEQUENT_ && !SCO && !_SX ) */ -#if !defined(_MINIX) && !defined(supermax) && !defined(WINNT_NATIVE) && !defined(IRIS4D) +#if !defined(_MINIX) && !defined(supermax) && !defined(WINNT_NATIVE) && !defined(IRIS4D) && !defined(__FreeBSD__) # include #endif /* !_MINIX && !supermax && !WINNT_NATIVE && !defined(IRIS4D) */ @@ -400,9 +400,11 @@ typedef long tcsh_number_t; #include #include #endif /* WINNT_NATIVE */ +#if !defined(BSD) #ifdef HAVE_SHADOW_H # include #endif /* HAVE_SHADOW_H */ +#endif #ifdef HAVE_AUTH_H # include #endif /* HAVE_AUTH_H */