Use winsock2.h on Windows. Make initializer value static
authorKen Raeburn <raeburn@mit.edu>
Mon, 9 Feb 2009 22:42:43 +0000 (22:42 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 9 Feb 2009 22:42:43 +0000 (22:42 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21934 dc483132-0cff-0310-8789-dd5450dbe970

src/util/support/ipc_stream.c

index 28c6614f901015d889dc781253eada99c6979ef4..3da2cbc01b286da1c36d5ae95b3143cd6ab404e1 100644 (file)
@@ -24,6 +24,9 @@
  * or implied warranty.
  */
 
+#ifdef _WIN32
+#include <winsock2.h>
+#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