time_facets.cpp misses _USE_MISC check, which makes building failed
Fixed by adding a proper check. Drop old revision.
Suggested-by: uzu@tuta.io
Gentoo-Bug: 562926
Package-Manager: portage-2.2.24
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="boost debug static static-libs threads"
-DEPEND="boost? ( >=dev-libs/boost-1.35.0-r5 )"
+DEPEND="boost? ( dev-libs/boost:= )"
RDEPEND="${DEPEND}"
DOCS=( README etc/ChangeLog doc/FAQ doc/README.utf8 )
#define _LARGEFILE64_SOURCE
EOF
+ # bug #562926
+ epatch "${FILESDIR}/${P}-time-facets.patch"
+
epatch_user
}
--- /dev/null
+diff -uNptr a/src/time_facets.cpp b/src/time_facets.cpp
+--- a/src/time_facets.cpp 2008-12-10 10:56:51.000000000 +0100
++++ b/src/time_facets.cpp 2015-10-11 12:07:55.841141984 +0100
+@@ -428,7 +428,7 @@ void _STLP_CALL __write_formatted_timeT(
+ break;
+ {
+ int diff;
+-# if defined (__USE_BSD) || defined (__BEOS__)
++# if defined (__USE_MISC) || defined (__USE_BSD) || defined (__BEOS__)
+ diff = t->tm_gmtoff;
+ # else
+ diff = t->__tm_gmtoff;