Merge pull request #2221 from zeshuai007/THRIFT-5249

THRIFT-5249 Fix Failed to run FastbinaryTest.py
diff --git a/lib/py/setup.py b/lib/py/setup.py
index fa81694..27a392d 100644
--- a/lib/py/setup.py
+++ b/lib/py/setup.py
@@ -67,6 +67,7 @@
         extensions = dict(
             ext_modules=[
                 Extension('thrift.protocol.fastbinary',
+                          extra_compile_args=['-std=c++11'],
                           sources=[
                               'src/ext/module.cpp',
                               'src/ext/types.cpp',