From 3ef3d3e331c051fb3901575e29b81ee5d09da154 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 9 Feb 2009 22:42:43 +0000 Subject: [PATCH] Use winsock2.h on Windows. Make initializer value static git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21934 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/support/ipc_stream.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/support/ipc_stream.c b/src/util/support/ipc_stream.c index 28c6614f9..3da2cbc01 100644 --- a/src/util/support/ipc_stream.c +++ b/src/util/support/ipc_stream.c @@ -24,6 +24,9 @@ * or implied warranty. */ +#ifdef _WIN32 +#include +#endif #include "k5-ipc_stream.h" #if !defined(htonll) @@ -43,7 +46,7 @@ struct k5_ipc_stream_s { uint64_t max_size; }; -const struct k5_ipc_stream_s k5_ipc_stream_initializer = { NULL, 0, 0 }; +static const struct k5_ipc_stream_s k5_ipc_stream_initializer = { NULL, 0, 0 }; #define K5_IPC_STREAM_SIZE_INCREMENT 128 -- 2.26.2