Index: configure.ac =================================================================== RCS file: /cvs/xorg/app/xdm/configure.ac,v retrieving revision 1.31 diff -u -r1.31 configure.ac --- configure.ac 21 Dec 2005 02:29:49 -0000 1.31 +++ configure.ac 25 Feb 2006 01:23:26 -0000 @@ -73,6 +73,15 @@ XTRANS_SECURE_RPC_FLAGS AM_CONDITIONAL(HAS_SECURE_RPC, test x$SECURE_RPC = xyes) +dnl Is key_setnet defined in a header file? +AC_CHECK_DECL(key_setnet, + AC_DEFINE(HAVE_DECL_KEY_SETNET,1, + [Define to 1 if your headers define the key_setnet() function.]), + [],[ +#include +#include +]) + # darwin could have PAM support, but not yet case $host_os in darwin*) Index: session.c =================================================================== RCS file: /cvs/xorg/app/xdm/session.c,v retrieving revision 1.3 diff -u -r1.3 session.c --- session.c 8 Nov 2005 06:33:31 -0000 1.3 +++ session.c 25 Feb 2006 01:23:26 -0000 @@ -1,4 +1,4 @@ -/* $XdotOrg: app/xdm/session.c,v 1.3 2005/11/08 06:33:31 jkj Exp $ */ +/* $XdotOrg: xc/programs/xdm/session.c,v 1.1.4.4 2003/12/06 13:24:29 kaleb Exp $ */ /* $Xorg: session.c,v 1.8 2001/02/09 02:05:40 xorgcvs Exp $ */ /* @@ -55,7 +55,9 @@ #ifdef SECURE_RPC # include # include +# if !HAVE_DECL_KEY_SETNET extern int key_setnet(struct key_netstarg *arg); +# endif #endif #ifdef K5AUTH # include