svn commit: r527261 - head/misc/visp/files

Piotr Kubaj pkubaj at FreeBSD.org
Thu Feb 27 15:28:26 UTC 2020


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


More information about the svn-ports-all mailing list