diff --git a/lib/des/rpw.c b/lib/des/rpw.c index 2213a56a9..433b2f17a 100644 --- a/lib/des/rpw.c +++ b/lib/des/rpw.c @@ -45,6 +45,9 @@ * [including the GNU Public Licence.] */ +#ifdef HAVE_CONFIG_H +#include +#endif #include #include "des.h" diff --git a/lib/des/speed.c b/lib/des/speed.c index ee517b186..c659cf5b1 100644 --- a/lib/des/speed.c +++ b/lib/des/speed.c @@ -53,21 +53,21 @@ #endif #include -#ifndef MSDOS +#ifdef HAVE_UNISTD_H #include -#else -#include #endif #include -#ifndef VMS -#ifndef _IRIX +#ifdef HAVE_TIME_H #include #endif -#ifdef TIMES +#ifdef HAVE_SYS_TYPES_H #include +#endif +#ifdef HAVE_SYS_TIMES_H #include #endif -#else /* VMS */ + +#ifdef VMS #include struct tms { time_t tms_utime; @@ -76,12 +76,13 @@ struct tms { time_t tms_uchildsys; /* so these names are a guess :-) */ } #endif -#ifndef TIMES + +#ifdef HAVE_SYS_TIMEB_H #include #endif -#ifdef sun #include +#ifdef HAVE_SYS_PARAM_H #include #endif