Subject: re: bin/10758: new kadmind build fails on sparc
To: Simon Burge <simonb@wasabisystems.com>
From: matthew green <mrg@eterna.com.au>
List: netbsd-bugs
Date: 08/05/2000 13:48:50
FYI:

this patch fixes kadmind for me, but it will cause heimdal to fail on
older systems.



Index: kadm_conn.c
===================================================================
RCS file: /cvsroot/basesrc/crypto/dist/heimdal/kadmin/kadm_conn.c,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 kadm_conn.c
*** kadm_conn.c	2000/08/02 19:58:51	1.1.1.1
--- kadm_conn.c	2000/08/05 03:48:16
*************** spawn_child(krb5_context context, int *s
*** 124,130 ****
  {
      int e, i;
      struct sockaddr sa;
!     size_t sa_size;
      int s;
      pid_t pid;
      krb5_address addr;
--- 124,130 ----
  {
      int e, i;
      struct sockaddr sa;
!     socklen_t sa_size;
      int s;
      pid_t pid;
      krb5_address addr;
Index: kadmind.c
===================================================================
RCS file: /cvsroot/basesrc/crypto/dist/heimdal/kadmin/kadmind.c,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 kadmind.c
*** kadmind.c	2000/08/02 19:58:52	1.1.1.2
--- kadmind.c	2000/08/05 03:48:17
*************** main(int argc, char **argv)
*** 135,141 ****
      {
  	int fd = 0;
  	struct sockaddr sa;
! 	size_t sa_size;
  	krb5_auth_context ac = NULL;
  	int debug_port;
  	sa_size = sizeof(sa);
--- 135,141 ----
      {
  	int fd = 0;
  	struct sockaddr sa;
! 	socklen_t sa_size;
  	krb5_auth_context ac = NULL;
  	int debug_port;
  	sa_size = sizeof(sa);