From 14eefe52c112397ec353aeead8ce2d5267bc05a8 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 19 Aug 2002 13:51:19 +0000 Subject: [PATCH] define krb5_socklen_t type; this should really go someplace else, but this was easy git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11127 ec53bebd-3082-4978-b11e-865c3cabbd6b --- include/bits.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/bits.c b/include/bits.c index 306a69b0e..e0591b6d6 100644 --- a/include/bits.c +++ b/include/bits.c @@ -218,6 +218,15 @@ int main(int argc, char **argv) fprintf(f, "\n"); fprintf(f, "#endif /* __BIT_TYPES_DEFINED__ */\n\n"); } +#ifdef KRB5 + fprintf(f, "\n"); +#if defined(HAVE_SOCKLEN_T) + fprintf(f, "typedef socklen_t krb5_socklen_t;\n"); +#else + fprintf(f, "typedef int krb5_socklen_t;\n"); +#endif + fprintf(f, "\n"); +#endif /* KRB5 */ fprintf(f, "#endif /* %s */\n", hb); return 0; }