From 949e5bf1dd3ed77cd4016132994fa9a3087e09b2 Mon Sep 17 00:00:00 2001 From: rufustfirefly Date: Wed, 21 Mar 2001 14:12:33 +0000 Subject: [PATCH] fixes for FreeBSD relying on unistd.h (not crypt.h) for crypto headers --- acconfig.h | 1 + configure.in | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/acconfig.h b/acconfig.h index 06a43b00..4669ecf1 100644 --- a/acconfig.h +++ b/acconfig.h @@ -16,6 +16,7 @@ #undef HAVE_GCC_MEMCPY_BUG #undef MACOSX_SERVER #undef NEED_QUOTACTL_WRAPPER +#undef NO_CRYPT_H #undef NO_DDP #undef NO_DLFCN_H #undef NO_STRUCT_TM_GMTOFF diff --git a/configure.in b/configure.in index f6f0de6b..bd008d5f 100644 --- a/configure.in +++ b/configure.in @@ -446,6 +446,13 @@ if test x"$this_os" = "xnetbsd"; then AC_DEFINE(DLSYM_PREPEND_UNDERSCORE) CFLAGS="-I\$(top_srcdir)/sys/netbsd -I/usr/include/kerberosIV $CFLAGS" need_dash_r=yes + + dnl ----- NetBSD does not have crypt.h, uses unistd.h ----- + AC_DEFINE(UAM_DHX, 1) + AC_DEFINE(UAM_RNDNUM, 1) + compile_dhx=yes + compile_ssl=yes + AC_DEFINE(NO_CRYPT_H, 1) fi dnl ----- OpenBSD specific ----- -- 2.39.2