From 075e212f484b0cf98ebada4f2c694f3695874534 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 18 Oct 2004 06:08:02 +0000 Subject: [PATCH] STABLE12-macos-build-update-20040310 make the head build again. (cherry picked from commit 7e1b1a2e0d6a70832ea993af71d130a0a8ff8239) --- acconfig.h | 1 + acinclude.m4 | 20 +++++++++++++++++++- src/auth/cellconfig.c | 3 +++ src/cf/ressearch.m4 | 3 +++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/acconfig.h b/acconfig.h index 075dca23b..20a8a41d1 100644 --- a/acconfig.h +++ b/acconfig.h @@ -53,6 +53,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } #undef STRUCT_TASK_STRUCT_HAS_SIGHAND #undef STRUCT_TASK_STRUCT_HAS_SIGMASK_LOCK #undef ssize_t +#undef HAVE_ARPA_NAMESER_COMPAT_H /* glue for RedHat kernel bug */ #undef ENABLE_REDHAT_BUILDSYS diff --git a/acinclude.m4 b/acinclude.m4 index b6e2bf20b..7489bad47 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -569,6 +569,24 @@ else done fi +dnl darwin wants it, aix hates it +AC_MSG_CHECKING(for the useability of arpa/nameser_compat.h) +AC_TRY_COMPILE([ +#include +#include +#include +#include +#include +#include +#include +#include +#include +], [static int i; i = 0;], +[AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_ARPA_NAMESER_COMPAT_H)], +[AC_MSG_RESULT(no) + ]) + openafs_save_libs="$LIBS" AC_MSG_CHECKING([for res_search]) AC_FUNC_RES_SEARCH @@ -683,7 +701,7 @@ AC_CHECK_HEADERS(stdlib.h string.h unistd.h fcntl.h sys/time.h sys/file.h) AC_CHECK_HEADERS(netinet/in.h netdb.h sys/fcntl.h sys/mnttab.h sys/mntent.h) AC_CHECK_HEADERS(mntent.h sys/vfs.h sys/param.h sys/fs_types.h) AC_CHECK_HEADERS(sys/mount.h strings.h termios.h signal.h) -AC_CHECK_HEADERS(windows.h malloc.h winsock2.h direct.h io.h) +AC_CHECK_HEADERS(windows.h malloc.h winsock2.h direct.h io.h sys/user.h) AC_CHECK_HEADERS(security/pam_modules.h siad.h usersec.h ucontext.h) if test "$ac_cv_header_security_pam_modules_h" = "yes"; then diff --git a/src/auth/cellconfig.c b/src/auth/cellconfig.c index 92d7e976e..62344ceb2 100644 --- a/src/auth/cellconfig.c +++ b/src/auth/cellconfig.c @@ -35,6 +35,9 @@ RCSID("$Header$"); #include #ifdef AFS_AFSDB_ENV #include +#ifdef HAVE_ARPA_NAMESER_COMPAT_H +#include +#endif #include #endif /* AFS_AFSDB_ENV */ #endif /* AFS_NT40_ENV */ diff --git a/src/cf/ressearch.m4 b/src/cf/ressearch.m4 index 53e237dd1..a0861dea2 100644 --- a/src/cf/ressearch.m4 +++ b/src/cf/ressearch.m4 @@ -4,6 +4,9 @@ AC_DEFUN(AC_FUNC_RES_SEARCH, [ #include #include #include +#ifdef HAVE_ARPA_NAMESER_COMPAT_H +#include +#endif #include ], [ const char host[11]="openafs.org"; -- 2.39.5