Subject: Re: toolchain/29170: -current tools cross-build fails on FreeBSD in lib/libc/gen/pw_scan.c
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 01/31/2005 11:35:02
The following reply was made to PR toolchain/29170; it has been noted by GNATS.

From: Lubomir Sedlacik <salo@Xtrmntr.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: toolchain/29170: -current tools cross-build fails on FreeBSD in lib/libc/gen/pw_scan.c
Date: Mon, 31 Jan 2005 12:34:07 +0100

 --dMyqICaxQaaUjrCL
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 proposed fix:
 
 Index: compat_defs.h
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/src/tools/compat/compat_defs.h,v
 retrieving revision 1.45
 diff -u -r1.45 compat_defs.h
 --- compat_defs.h	11 Dec 2004 09:34:08 -0000	1.45
 +++ compat_defs.h	31 Jan 2005 11:30:20 -0000
 @@ -448,6 +448,13 @@
  #ifndef GID_MAX
  #define GID_MAX UID_MAX
  #endif
 +#ifndef LOGIN_NAME_MAX
 +# if defined(_POSIX_LOGIN_NAME_MAX)
 +#  define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
 +# else
 +#  define LOGIN_NAME_MAX 9
 +# endif
 +#endif
 =20
  #ifndef UQUAD_MAX
  #define UQUAD_MAX ((u_quad_t)-1)
 
 --=20
 -- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --
 
 --dMyqICaxQaaUjrCL
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (NetBSD)
 
 iD8DBQFB/heviwjDDlS8cmMRAlKMAKCGF31S4eyDFqv0gPAFhSsMGybGBgCfd3Zz
 Kn0iMYYHeJwSq4TSAdHYRXo=
 =LDLf
 -----END PGP SIGNATURE-----
 
 --dMyqICaxQaaUjrCL--