diff --git a/lib/des/des.h b/lib/des/des.h index 86a8fdc25..9942de68d 100644 --- a/lib/des/des.h +++ b/lib/des/des.h @@ -53,8 +53,12 @@ /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a * %20 speed up (longs are 8 bytes, int's are 4). */ #ifndef DES_LONG +#if defined(__alpha) +#define DES_LONG unsigned int +#else /* Not a 64 bit machine */ #define DES_LONG unsigned long #endif +#endif typedef unsigned char des_cblock[8]; typedef struct des_ks_struct diff --git a/lib/des/des_locl.h b/lib/des/des_locl.h index 8edea512f..55c66f937 100644 --- a/lib/des/des_locl.h +++ b/lib/des/des_locl.h @@ -1,3 +1,26 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" + +/* + if (we have termios.h) + define TERMIOS + else if (we have termio.h) + define TERMIO +*/ +#ifdef HAVE_TERMIOS_H + +#define TERMIOS + +#else /* !HAVE_TERMIOS_H */ + +#ifdef HAVE_TERMIO_H +#define TERMIO +#endif + +#endif /* !HAVE_TERMIOS_H */ + +#endif /* HAVE_CONFIG_H */ + /* lib/des/des_locl.h */ /* Copyright (C) 1995 Eric Young (eay@mincom.oz.au) * All rights reserved.