aboutsummaryrefslogtreecommitdiff
path: root/devel/eris
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2006-04-24 06:59:06 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2006-04-24 06:59:06 +0000
commit6c70f37227966e621acbc282c48d278e407b9a6b (patch)
treefccb713bf08e9e6e06ca03bd8cb29e10fab00ace /devel/eris
parentf670b8393186d05872a61d8e6cffe95265a75029 (diff)
downloadports-6c70f37227966e621acbc282c48d278e407b9a6b.tar.gz
ports-6c70f37227966e621acbc282c48d278e407b9a6b.zip
Notes
Diffstat (limited to 'devel/eris')
-rw-r--r--devel/eris/files/patch-Eris-Calendar.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/eris/files/patch-Eris-Calendar.cpp b/devel/eris/files/patch-Eris-Calendar.cpp
new file mode 100644
index 000000000000..9f64d184e672
--- /dev/null
+++ b/devel/eris/files/patch-Eris-Calendar.cpp
@@ -0,0 +1,27 @@
+--- Eris/Calendar.cpp.orig Fri Dec 30 20:07:55 2005
++++ Eris/Calendar.cpp Mon Apr 24 07:13:42 2006
+@@ -1,6 +1,12 @@
+ #ifdef HAVE_CONFIG_H
+ #include "config.h"
+ #endif
++#if defined(__FreeBSD__)
++# include <osreldate.h>
++# if __FreeBSD_version < 500000
++# undef _XOPEN_SOURCE
++# endif
++#endif
+
+ #include <Eris/Calendar.h>
+ #include <Eris/Avatar.h>
+@@ -75,7 +81,11 @@
+ // we don't have valid calendar data yet
+ if (m_daysPerMonth == 0) return n;
+
++#if defined(__FreeBSD__) && __FreeBSD_version < 500000
++ n.m_seconds = rintf(m_avatar->getWorldTime());
++#else
+ n.m_seconds = lrintf(m_avatar->getWorldTime());
++#endif
+
+ n.m_minutes = n.m_seconds / m_secondsPerMinute;
+ n.m_seconds -= (n.m_minutes * m_secondsPerMinute);