#define HAVE_STRING_H
#ifdef AFS_NT40_ENV
+#define HAVE_WINDOWS_H
#define HAVE_MALLOC_H
#define HAVE_WINSOCK2_H
#define HAVE_DIRECT_H
#define HAVE_SYS_MOUNT_H
#endif
+#if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV) || defined(AFS_LINUX22_ENV)
+#define HAVE_STRINGS_H
+#define HAVE_STRING_H
+#else
+#define HAVE_STRING_H
+#endif
+
+#if defined(AFS_SUN_ENV) && !defined(AFS_SUN5_ENV)
+#define HAVE_TERMIOS_H
+#elif defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
+#define HAVE_TERMIOS_H
+#endif
+
+#if defined(AFS_SGI_ENV) || defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
+#define HAVE_SIGNAL_H
+#endif
+
#endif /* AFSCONFIG_H */
GPROF =
# by default do not try to hide entry points
F_CC = -c ${GPROF} ${DBG} ${XCFLAGS}
-F_CPP = -I${K_INC} -I.
-MK_STR = " \$${CC} -I\$${SRC} \$${F_CPP} \$${F_CC}"
+F_CPP = -I${K_INC} -I. -I${TOP_SRCDIR}/config
+MK_STR = " \$${CC} -I\$${SRC} \$${F_CPP} \$${F_CC}" -I${TOP_SRCDIR}/config
LDFLAGS = ${XLDFLAGS}
# dont use optimizer, since it pessimizes on uvax2,
*/
#include <afs/param.h>
+#include <afsconfig.h>
#ifdef vax
#include "conf-bsdvax.h"
#else
#include <afs/param.h>
#include <mit-cpyright.h>
#include <stdio.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
-#include <string.h>
-#else
+#if defined(HAVE_STRINGS_H)
#include <strings.h>
#endif
+#if defined(HAVE_STRING_H)
+#include <string.h>
+#endif
#include <des.h>
#include "des_internal.h"
#include <windows.h>
#endif
#include <stdlib.h>
+#if defined(HAVE_STRINGS_H)
+#include <strings.h>
+#endif
+#if defined(HAVE_STRING_H)
#include <string.h>
+#endif
/*
* UNIX password, and DES, encryption.
*/
#include <afs/param.h>
+#include <afsconfig.h>
#include <mit-cpyright.h>
/* Machine-type and OS-type based configuration */
#include <mit-cpyright.h>
#include <afs/param.h>
+#include <des.h>
+#include "des_internal.h"
#ifdef AFS_PTHREAD_ENV
#include <pthread.h>
#endif
+#if defined(HAVE_STRINGS_H)
+#include <strings.h>
+#endif
+#if defined(HAVE_STRING_H)
#include <string.h>
-#include <des.h>
-#include "des_internal.h"
+#endif
#include "stats.h"
extern void des_fixup_key_parity();
#include "conf.h"
#include <stdio.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(HAVE_STRINGS_H)
#include <strings.h>
#endif
+#if defined(HAVE_STRING_H)
#include <string.h>
+#endif
#ifdef BSDUNIX
#ifdef AFS_SUN5_ENV
#include <setjmp.h>
#endif
-#if defined(AFS_SGI_ENV) || defined(AFS_LINUX20_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
+#endif
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
static int intrupt;
#endif
-#if defined(AFS_SUN_ENV) && !defined(AFS_SUN5_ENV)
+#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
-#if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
-#include <termios.h>
-#endif
-#ifdef AFS_NT40_ENV
+#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#include <mit-cpyright.h>
#include <stdio.h>
-#include <string.h>
#include <afs/param.h>
#include <des.h>
#include "des_internal.h"
+#if defined(HAVE_STRINGS_H)
+#include <strings.h>
+#endif
+#if defined(HAVE_STRING_H)
+#include <string.h>
+#endif
extern int des_debug;
extern int des_debug_print();
* Originally written 8/85 by Steve Miller, MIT Project Athena.
*/
-#include <string.h>
#include <des.h>
#include "des_internal.h"
+#if defined(HAVE_STRINGS_H)
+#include <strings.h>
+#endif
+#if defined(HAVE_STRING_H)
+#include <string.h>
+#endif
/*
* The following are the weak DES keys:
CC=${MT_CC}
INCLUDES = -I${SRCDIR}include -I.. -I../rx
-CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS}
+CFLAGS = ${OPTMZ} ${DBG} ${INCLUDES} -DRXDEBUG ${MT_CFLAGS} -I${TOP_SRCDIR}/config
SFLAGS=-P -I${SRCDIR}include
RX = ../rx
CCRULE = ${CC} ${CFLAGS} -c $?