0001-msvc-build-fix.patch 476 B

12345678910111213141516
  1. diff --git a/thirdparty/wslay/wslay/wslay.h b/thirdparty/wslay/wslay/wslay.h
  2. index 7ab850111a..7d63bdb2ce 100644
  3. --- a/thirdparty/wslay/wslay/wslay.h
  4. +++ b/thirdparty/wslay/wslay/wslay.h
  5. @@ -33,6 +33,11 @@ extern "C" {
  6. #include <stdlib.h>
  7. #include <sys/types.h>
  8. +#if defined(_MSC_VER)
  9. +#include <BaseTsd.h>
  10. +typedef SSIZE_T ssize_t;
  11. +#endif
  12. +
  13. /*
  14. * wslay/wslayver.h is generated from wslay/wslayver.h.in by
  15. * configure. The projects which do not use autotools can set