macos-unistd.patch 293 B

123456789101112131415
  1. diff --git a/src/utils.cc b/src/utils.cc
  2. index 05cb8e2..6f16a66 100644
  3. --- a/src/utils.cc
  4. +++ b/src/utils.cc
  5. @@ -24,6 +24,10 @@
  6. #include <corecrt.h>
  7. #endif
  8. +#ifndef _MSC_VER
  9. +#include <unistd.h>
  10. +#endif
  11. +
  12. #include <openssl/bio.h>
  13. #include <openssl/buffer.h>
  14. #include <openssl/crypto.h>