Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 2014 14:38:06 +0000 (UTC)
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r371128 - head/cad/opencascade/files
Message-ID:  <201410181438.s9IEc6th075122@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thierry
Date: Sat Oct 18 14:38:06 2014
New Revision: 371128
URL: https://svnweb.freebsd.org/changeset/ports/371128
QAT: https://qat.redports.org/buildarchive/r371128/

Log:
  Fix build on FreeBSD-8.4.

Added:
  head/cad/opencascade/files/patch-src_Standard_Standard_CString.cxx   (contents, props changed)
Modified:
  head/cad/opencascade/files/patch-inc_Standard_CLocaleSentry.hxx

Modified: head/cad/opencascade/files/patch-inc_Standard_CLocaleSentry.hxx
==============================================================================
--- head/cad/opencascade/files/patch-inc_Standard_CLocaleSentry.hxx	Sat Oct 18 14:32:51 2014	(r371127)
+++ head/cad/opencascade/files/patch-inc_Standard_CLocaleSentry.hxx	Sat Oct 18 14:38:06 2014	(r371128)
@@ -5,7 +5,7 @@
  //! since POSIX didn't declared such identifier.
  //! We check _GNU_SOURCE for glibc extensions here and it is always defined by g++ compiler.
 -#if defined(__APPLE__) || defined(_GNU_SOURCE) || defined(HAVE_XLOCALE_H)
-+#if defined(__APPLE__) || defined(_GNU_SOURCE) || (defined(__FreeBSD__) && (__FreeBSD_version < 910000)) || defined(HAVE_XLOCALE_H)
++#if defined(__APPLE__) || defined(_GNU_SOURCE) || (defined(__FreeBSD__) && (__FreeBSD_version > 910000)) || defined(HAVE_XLOCALE_H)
    #include <xlocale.h>
    #ifndef HAVE_XLOCALE_H
      #define HAVE_XLOCALE_H

Added: head/cad/opencascade/files/patch-src_Standard_Standard_CString.cxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/opencascade/files/patch-src_Standard_Standard_CString.cxx	Sat Oct 18 14:38:06 2014	(r371128)
@@ -0,0 +1,11 @@
+--- src/Standard/Standard_CString.cxx.orig	2014-04-29 11:40:41.000000000 +0200
++++ src/Standard/Standard_CString.cxx	2014-10-18 16:05:36.000000000 +0200
+@@ -94,7 +94,7 @@
+   // So we switch to C locale temporarily
+   #define SAVE_TL() Standard_CLocaleSentry aLocaleSentry;
+   #ifndef HAVE_XLOCALE_H
+-    #error System does not support xlocale. Import/export could be broken if C locale did not specified by application.
++    // #error System does not support xlocale. Import/export could be broken if C locale did not specified by application.
+     #define strtod_l(thePtr, theNextPtr, theLocale)              strtod(thePtr, theNextPtr)
+   #endif
+   #define vprintf_l(theLocale, theFormat, theArgPtr)             vprintf(theFormat, theArgPtr)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410181438.s9IEc6th075122>