define krb5_socket_t

This commit is contained in:
Love Hornquist Astrand
2009-11-25 02:07:45 +01:00
parent 1650607d4c
commit 93a56f6153

View File

@@ -234,6 +234,15 @@ int main(int argc, char **argv)
fprintf(f, "typedef int krb5_ssize_t;\n");
#endif
fprintf(f, "\n");
#if defined(_WIN32)
#include <ws2tcpip.h>
fprintf(f, "typedef SOCKET krb5_socket_t;\n");
#else
fprintf(f, "typedef int krb5_socket_t;\n");
#endif
fprintf(f, "\n");
#endif /* KRB5 */
fprintf(f, "#endif /* %s */\n", hb);