Gate LZ4Frame behind version check
authorNick Terrell <terrelln@fb.com>
Mon, 27 Mar 2017 23:14:38 +0000 (16:14 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 27 Mar 2017 23:20:47 +0000 (16:20 -0700)
commit5a66fe5de00a07af9e159efa2bfdaa6fdb925d24
treec73d7c95bb44fd7ed16e49e62969117d06ba72f4
parent136c9fba2f6b520946edb2556e1acb14d59ac660
Gate LZ4Frame behind version check

Summary:
D4715918 broke open source builds on Ubuntu 14.04, since it has lz4-r114, but the lz4 frame API was introduced in [r123](https://github.com/lz4/lz4/blob/r123/lz4frame.h).
Put the `LZ4FrameCodec` behind a lz4 version check.
Fixes https://github.com/facebook/fbthrift/issues/209.

Reviewed By: yfeldblum

Differential Revision: D4780830

fbshipit-source-id: 19492a7e6bdd128e610c36b5778274e19eff9548
folly/io/Compression.cpp