21-windows_build.patch 413 B

12345678910111213141516
  1. --- a/include/grpc/event_engine/port.h (index)
  2. +++ b/include/grpc/event_engine/port.h (working tree)
  3. @@ -31,6 +31,13 @@
  4. #include <winsock2.h>
  5. #include <ws2tcpip.h>
  6. // must be included after the above
  7. +
  8. +// For some reason OPTIONAL is not defined and build for window is not OK
  9. +// Let, define it here as empty
  10. +#ifndef OPTIONAL
  11. +#define OPTIONAL
  12. +#endif
  13. +
  14. #include <mswsock.h>
  15. #else
  16. #error UNKNOWN PLATFORM