svn commit: r371128 - head/cad/opencascade/files
Thierry Thomas
thierry at FreeBSD.org
Sat Oct 18 14:38:07 UTC 2014
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)
More information about the svn-ports-all
mailing list