define krb5_socklen_t type; this should really go someplace else, but
authorJohan Danielsson <joda@pdc.kth.se>
Mon, 19 Aug 2002 13:51:19 +0000 (13:51 +0000)
committerJohan Danielsson <joda@pdc.kth.se>
Mon, 19 Aug 2002 13:51:19 +0000 (13:51 +0000)
this was easy

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11127 ec53bebd-3082-4978-b11e-865c3cabbd6b

include/bits.c

index 306a69b0ecb5646f8167821236babd2a3b3f379a..e0591b6d6a76813b73b48d5b022522b172f39d9b 100644 (file)
@@ -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;
 }