macro.
* conf/transp/transp_tli.c (get_nfs_version): always use
rpcvers_t, now that it'll be automatically discovered.
* configure.in: check for rpcvers_t type.
* m4/macros/type_rpcvers_t.m4: new macro to check for type of
rpcvers_t (Some Solaris versions need it).
2005-06-23 Erez Zadok <ezk@cs.sunysb.edu>
+ * Makefile.am (EXTRA_DIST_M4): distribue new type_rpcvers_t.m4
+ macro.
+
+ * conf/transp/transp_tli.c (get_nfs_version): always use
+ rpcvers_t, now that it'll be automatically discovered.
+
+ * configure.in: check for rpcvers_t type.
+
+ * m4/macros/type_rpcvers_t.m4: new macro to check for type of
+ rpcvers_t (Some Solaris versions need it).
+
* conf/nfs_prot/nfs_prot_sunos5_8.h: don't define INADDR_NONE
here, but in the actual source files that may need it.
m4/macros/type_pcfs_args.m4 \
m4/macros/type_recvfrom_fromlen.m4 \
m4/macros/type_rfs_args.m4 \
+ m4/macros/type_rpcvers_t.m4 \
m4/macros/type_svc_in_arg.m4 \
m4/macros/type_time_t.m4 \
m4/macros/type_tmpfs_args.m4 \
* SUCH DAMAGE.
*
*
- * $Id: transp_tli.c,v 1.31 2005/03/19 03:05:25 ezk Exp $
+ * $Id: transp_tli.c,v 1.32 2005/06/23 21:05:18 ezk Exp $
*
* TLI specific utilities.
* -Erez Zadok <ezk@cs.columbia.edu>
get_nfs_version(char *host, struct sockaddr_in *sin, u_long nfs_version, const char *proto)
{
CLIENT *clnt = NULL;
-#ifdef HAVE_CLNT_CREATE_VERS_TIMED
rpcvers_t versout;
-#else /* not HAVE_CLNT_CREATE_VERS_TIMED */
- u_long versout;
-#endif /* not HAVE_CLNT_CREATE_VERS_TIMED */
struct timeval tv;
/*
dnl
dnl AC_CONFIG_AUX_DIR(m4)
AC_PREREQ(2.52)
-AC_REVISION($Revision: 1.98 $)
+AC_REVISION($Revision: 1.99 $)
AC_COPYRIGHT([Copyright (c) 1997-2005 Erez Zadok])
dnl find out system type
AC_MSG_NOTICE(*** SYSTEM TYPES ***)
dnl Generic Typedef Checks
AC_MSG_NOTICE(*** GENERIC TYPEDEFS ***)
AMU_TYPE_TIME_T
+AMU_TYPE_RPCVERS_T
AMU_CHECK_FHANDLE
AMU_CHECK_MTYPE_TYPE
AMU_CHECK_MTYPE_PRINTF_TYPE
--- /dev/null
+dnl ######################################################################
+dnl check for type of rpcvers_t (usually in <rpc/types.h>)
+AC_DEFUN([AMU_TYPE_RPCVERS_T],
+[AC_CHECK_TYPE(rpcvers_t, unsigned long)])
+dnl ======================================================================