Date: Thu, 27 Feb 2020 15:28:24 +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: r527261 - head/misc/visp/files Message-ID: <202002271528.01RFSOLt086987@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Thu Feb 27 15:28:23 2020 New Revision: 527261 URL: https://svnweb.freebsd.org/changeset/ports/527261 Log: misc/visp: fix build on GCC architectures FreeBSD doesn't have endian.h. PR: 244308 Approved by: yuri (maintainer) Added: head/misc/visp/files/patch-modules_core_src_tools_file_vpIoTools.cpp (contents, props changed) Added: head/misc/visp/files/patch-modules_core_src_tools_file_vpIoTools.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/visp/files/patch-modules_core_src_tools_file_vpIoTools.cpp Thu Feb 27 15:28:23 2020 (r527261) @@ -0,0 +1,11 @@ +--- modules/core/src/tools/file/vpIoTools.cpp.orig 2020-02-22 01:06:07 UTC ++++ modules/core/src/tools/file/vpIoTools.cpp +@@ -85,7 +85,7 @@ + + // Detect endianness of the host machine + // Reference: http://www.boost.org/doc/libs/1_36_0/boost/detail/endian.hpp +-#if defined(__GLIBC__) || (defined(__GNUC__) && !defined(__llvm__) && !defined(__MINGW32__) && defined(__BYTE_ORDER__)) ++#if defined(__GLIBC__) || (defined(__GNUC__) && !defined(__llvm__) && !defined(__MINGW32__) && defined(__BYTE_ORDER__) && defined(__linux__)) + #include <endian.h> + #if (__BYTE_ORDER == __LITTLE_ENDIAN) + #define VISP_LITTLE_ENDIAN
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002271528.01RFSOLt086987>