build: fix compilation with clang on Ubuntu 14.04
Change-Id: I0ce54ec0e42cfba8b5da129e8f81e84ef76254db
Refs: #4096
diff --git a/wscript b/wscript
index 1f8d497..376a49a 100644
--- a/wscript
+++ b/wscript
@@ -109,9 +109,12 @@
if conf.env.BOOST_VERSION_NUMBER < 105400:
Logs.error("Minimum required boost version is 1.54.0")
Logs.error("Please upgrade your distribution or install custom boost libraries" +
- " (https://redmine.named-data.net/projects/nfd/wiki/Boost_FAQ)")
+ " (https://redmine.named-data.net/projects/nfd/wiki/Boost_FAQ)")
return
+ if conf.env['CXX_NAME'] == 'clang' and conf.env.BOOST_VERSION_NUMBER < 105800:
+ conf.env.append_value('DEFINES', 'BOOST_ASIO_HAS_STD_ARRAY=1') # Bug #4096
+
if not conf.options.with_sqlite_locking:
conf.define('DISABLE_SQLITE3_FS_LOCKING', 1)