Date: Mon, 27 Jan 2020 22:01:49 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r524447 - head/graphics/openimageio/files Message-ID: <202001272201.00RM1ngd077763@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Jan 27 22:01:49 2020 New Revision: 524447 URL: https://svnweb.freebsd.org/changeset/ports/524447 Log: graphics/openimageio: fix build on powerpc64 elfv2 Change if to explicit ifdef to prevent: /wrkdirs/usr/ports/graphics/openimageio/work/oiio-Release-2.0.10/src/libutil/ustring.cpp:328:27: error: expected value in expression # if _LIBCPP_BIG_ENDIAN PR: 242134 Approved by: FreeBSD@ShaneWare.Biz (maintainer timeout) Added: head/graphics/openimageio/files/patch-src_libutil_ustring.cpp (contents, props changed) Added: head/graphics/openimageio/files/patch-src_libutil_ustring.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/openimageio/files/patch-src_libutil_ustring.cpp Mon Jan 27 22:01:49 2020 (r524447) @@ -0,0 +1,20 @@ +--- src/libutil/ustring.cpp.orig 2020-01-27 21:27:51 UTC ++++ src/libutil/ustring.cpp +@@ -314,7 +314,7 @@ struct libcpp_string__long { + std::string::size_type __size_; + std::string::size_type __cap_; + }; +-# if _LIBCPP_BIG_ENDIAN ++# ifdef _LIBCPP_BIG_ENDIAN + enum { libcpp_string__long_mask = 0x1ul }; + # else // _LIBCPP_BIG_ENDIAN + enum { libcpp_string__long_mask = ~(std::string::size_type(~0) >> 1) }; +@@ -325,7 +325,7 @@ struct libcpp_string__long { + std::string::size_type __size_; + std::string::pointer __data_; + }; +-# if _LIBCPP_BIG_ENDIAN ++# ifdef _LIBCPP_BIG_ENDIAN + enum { libcpp_string__long_mask = ~(std::string::size_type(~0) >> 1) }; + # else // _LIBCPP_BIG_ENDIAN + enum { libcpp_string__long_mask = 0x1ul };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001272201.00RM1ngd077763>