+Mon Jul 29 22:02:47 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * configure.in: Determine whether netdb.h defines struct rpcent.
+
+ * types.hin: Expand rpcent_define to be a null string or a #define
+ on Linux.
+
+ * netdb.h: Include rpc/types.h and only define struct rpcent if
+ needed.
+
Wed Jul 24 07:58:38 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* pmap_rmt.c (clnt_broadcast): Use memset insetad of bzero.
AC_PROG_ARCHIVE_ADD
AC_PROG_RANLIB
AC_PROG_INSTALL
-
+AC_TRY_COMPILE([
+#include <netdb.h>
+ ],[
+ struct rpcent e;
+ char c = e.r_name[0];
+ int i = e.r_number;
+ ], [rpcent_define='#define STRUCT_RPCENT_ALREADY_PROVIDED'],
+ [rpcent_define='']) dnl
+AC_SUBST(rpcent_define)
AC_CHECK_SIZEOF(int)
SIZEOF_INT=$ac_cv_sizeof_int
AC_SUBST(SIZEOF_INT)
* Mountain View, California 94043
*/
/* @(#)rpc.h 1.8 87/07/24 SMI */
-
+#include <rpc/types.h>
/* since the gssrpc library requires that any application using it be
built with these header files, I am making the decision that any app
which uses the rpcent routines must use this header file, or something
compatible (which most <netdb.h> are) --marc */
/* Really belongs in <netdb.h> */
-
+#ifndef STRUCT_RPCENT_ALREADY_PROVIDED
struct rpcent {
char *r_name; /* name of server for this rpc program */
char **r_aliases; /* alias list */
int r_number; /* rpc program number */
};
-
+#endif /*STRUCT_RPCENT_ALREADY_PROVIDED*/
struct rpcent *getrpcbyname(), *getrpcbynumber(), *getrpcent();
#endif
#define __TYPES_RPC_HEADER__
#include <sys/types.h>
-
+/* This is for rpc/netdb.h */
+@rpcent_define@
/* this is a 32-bit int type */
#if @SIZEOF_INT@ == 4
#endif
#endif /* ndef __TYPES_RPC_HEADER__ */
+