vcpkg/ports/zeromq/zeromq-libzmq-4311-2b04e0ce47.diff
Zaki Mughal [sivoais] b0d88dd9ff
[zeromq] Download patch files for GitHub PRs (#23435)
* [zeromq] Download patch files for GitHub PRs

This is needed to have a stable checksum for the patches because GitHub
is returning a different checksum for the patches now because the index
objects are abbreviated to 9 characters instead of 10 characters, e.g.
for patch4311:

```diff
+ index 24cce83d1..c6d625188 100644
- index 24cce83d11..c6d625188d 100644
```
Reported at <https://github.com/microsoft/vcpkg/pull/22681#issuecomment-1061312320>.

A possible long-term fix is reported to GitHub at
<https://github.com/github/feedback/discussions/12531>.

* [zeromq] Update version
2022-03-15 14:07:53 -07:00

19 lines
516 B
Diff

diff --git a/src/windows.hpp b/src/windows.hpp
index 24cce83d11..c6d625188d 100644
--- a/src/windows.hpp
+++ b/src/windows.hpp
@@ -90,7 +90,6 @@ static inline int poll (struct pollfd *pfd, unsigned long nfds, int timeout)
#ifndef AI_NUMERICSERV
#define AI_NUMERICSERV 0x0400
#endif
-#endif
// In MSVC prior to v14, snprintf is not available
// The closest implementation is the _snprintf_s function
@@ -108,3 +107,5 @@ struct sockaddr_un
char sun_path[108]; /* pathname */
};
#endif
+
+#endif