diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2006-04-24 06:59:06 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2006-04-24 06:59:06 +0000 |
commit | 6c70f37227966e621acbc282c48d278e407b9a6b (patch) | |
tree | fccb713bf08e9e6e06ca03bd8cb29e10fab00ace /devel/eris | |
parent | f670b8393186d05872a61d8e6cffe95265a75029 (diff) | |
download | ports-6c70f37227966e621acbc282c48d278e407b9a6b.tar.gz ports-6c70f37227966e621acbc282c48d278e407b9a6b.zip |
Notes
Diffstat (limited to 'devel/eris')
-rw-r--r-- | devel/eris/files/patch-Eris-Calendar.cpp | 27 |
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); |