11-fix-iovec-redefinition.patch 472 B

123456789101112131415
  1. diff -r -u grpc-old/src/core/tsi/alts/crypt/gsec.h grpc/src/core/tsi/alts/crypt/gsec.h
  2. --- a/src/core/tsi/alts/crypt/gsec.h
  3. +++ b/src/core/tsi/alts/crypt/gsec.h
  4. @@ -28,8 +28,10 @@
  5. #include <grpc/event_engine/port.h>
  6. #include <grpc/grpc.h>
  7. -#ifndef _STRUCT_IOVEC
  8. +#ifndef _STRUCT_IOVEC && !defined(__DEFINED_struct_iovec)
  9. #if !defined(GRPC_EVENT_ENGINE_POSIX)
  10. +#define _STRUCT_IOVEC
  11. +#define __DEFINED_struct_iovec
  12. struct iovec {
  13. void* iov_base;
  14. size_t iov_len;