drizzle's sleep plugin fails to compile with boost >= 1.50
Bug #1132659 reported by
David Arnold
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In boost-1.50, the existing TIME_UTC macro is renamed to TIME_UTC_ (note the trailing underscore) due to a conflict with C11. For details, see boost issue #6940 (https:/
Suggest adding something like
#include <boost/version.hpp>
#if BOOST_VERSION < 105000
# if __STDC_VERSION__ >= 201112L
# error Cannot use Boost < 1.50 with C11 compiler. Upgrade Boost or downgrade compiler.
# else
# define TIME_UTC_ TIME_UTC
# endif
#endif
and using TIME_UTC_ in plugins/
To post a comment you must log in.
Also breaks
client/ drizzleslap. cc:1937: error: 'TIME_UTC' is not a member of 'boost' client_ drizzleslap- drizzleslap. o] Error 1
make[2]: *** [client/
Same fix.