Support MSVC, which does not have VLAs, in folly/io/async/AsyncSocket.cpp
authorYedidya Feldblum <yfeldblum@fb.com>
Fri, 18 Sep 2015 08:37:13 +0000 (01:37 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Fri, 18 Sep 2015 09:20:17 +0000 (02:20 -0700)
commit4401039fdc12b3bf8c155057019ce6d924d43465
tree6139b33e231211efc66b072966125fa6a15aae0d
parente4527fb5d04f5fec823bd6a2402b620a6e1a64e3
Support MSVC, which does not have VLAs, in folly/io/async/AsyncSocket.cpp

Summary: [Folly] Support MSVC, which does not have VLAs, in `folly/io/async/AsyncSocket.cpp`.

We use VLAs in compilers that have them, and fixed-size arrays in compilers that do not.

Reviewed By: @JoelMarcey

Differential Revision: D2450689
folly/configure.ac
folly/io/async/AsyncSocket.cpp