From: Ken Raeburn Date: Mon, 9 Feb 2009 22:42:43 +0000 (+0000) Subject: Use winsock2.h on Windows. Make initializer value static X-Git-Tag: krb5-1.8-alpha1~670 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3ef3d3e331c051fb3901575e29b81ee5d09da154;p=krb5.git Use winsock2.h on Windows. Make initializer value static git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21934 dc483132-0cff-0310-8789-dd5450dbe970 --- 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