Skip to content

Commit 6bf4109

Browse files
authored
Merge pull request #35 from Unity-Technologies/use-poll-on-macos
Enable HAVE_POLL on macOS See curl#1057 for some historical context here. NB: Upstream curl re-enables this, so we can do away with this and re-generate once we upgrade curl version.
2 parents cabec2f + d4b1505 commit 6bf4109

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/config-macos.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,11 @@
181181
#endif
182182

183183
#define USE_UNITYTLS 1
184+
// our curl version disabled poll on macOS due to bugs in macOS 10.12
185+
// Unity has no need for supporting macOS 10.12
186+
// and, we do need to support contexts with >1k open files
187+
// curl also enables HAVE_POLL on macOS in upstream
188+
// see https://github.com/curl/curl/issues/1057 for historical context
189+
// nb: newer curl releases *do* use poll on macOS, so we can just regenerate once we sync
190+
#define HAVE_POLL 1
191+
#define HAVE_POLL_FINE 1

0 commit comments

Comments
 (0)