Skip to content

Commit

Permalink
pw_stream: Fix use of shutdown on Windows
Browse files Browse the repository at this point in the history
Bug: 309680612
Test: Verified sample-project-default-build-windows succeeds.
Test: Verified socket unit tests pass.
Test: See details in testing done comment in the code review.
Change-Id: I6d46b8f859c5ec5ad936eb3de73b3a701ac9542d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/180401
Reviewed-by: Carlos Chinchilla <cachinchilla@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Erik Staats <estaats@google.com>
  • Loading branch information
estaats-google authored and CQ Bot Account committed Nov 11, 2023
1 parent 29b0e93 commit 5a48b57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pw_stream/socket_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#if defined(_WIN32) && _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#define SHUT_RDWR SD_BOTH
#else
#include <arpa/inet.h>
#include <netdb.h>
Expand Down

0 comments on commit 5a48b57

Please sign in to comment.