diff options
author | thierry <thierry@FreeBSD.org> | 2009-02-25 03:32:17 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2009-02-25 03:32:17 +0800 |
commit | 442a032a110879a35ff8439ccccb93180751c22d (patch) | |
tree | 5b791ec9e2a894735b4776c26e9ffdfdf9fb4a2c /cad/opencascade/files | |
parent | 0e6978c086daa69fe96ef1b1c04c547fc7a11854 (diff) | |
download | freebsd-ports-gnome-442a032a110879a35ff8439ccccb93180751c22d.tar.gz freebsd-ports-gnome-442a032a110879a35ff8439ccccb93180751c22d.tar.zst freebsd-ports-gnome-442a032a110879a35ff8439ccccb93180751c22d.zip |
Fix the previous patch.
PR: ports/131600
Submitted by: Cristiano Rolim Pereira <cristianorolim (at) hotmail.com>
Diffstat (limited to 'cad/opencascade/files')
-rw-r--r-- | cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx b/cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx index 245322f6345c..15ae3f1def48 100644 --- a/cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx +++ b/cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx @@ -1,11 +1,16 @@ --- ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx.orig 2001-09-21 10:00:28.000000000 +0200 -+++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-01-24 11:45:15.000000000 +0100 -@@ -103,7 +103,7 @@ ++++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-02-24 18:59:57.000000000 +0100 +@@ -103,6 +103,13 @@ Handle(StepBasic_CoordinatedUniversalTimeOffset) zone = new StepBasic_CoordinatedUniversalTimeOffset; -- Standard_Integer shift = Standard_Integer(timezone); -+ Standard_Integer shift = Standard_Integer((long long) timezone); ++ ++ struct tm newtime; ++ time_t ltime; ++ ltime=time(<ime); ++ localtime_r(<ime, &newtime); ++ int timezone=newtime.tm_gmtoff; ++ + Standard_Integer shift = Standard_Integer(timezone); Standard_Integer shifth = abs ( shift ) / 3600; Standard_Integer shiftm = ( abs ( shift ) - shifth * 3600 ) / 60; - StepBasic_AheadOrBehind sense = ( shift >0 ? StepBasic_aobBehind : |