diff options
author | Bernhard Froehlich <decke@FreeBSD.org> | 2010-05-14 19:13:51 +0000 |
---|---|---|
committer | Bernhard Froehlich <decke@FreeBSD.org> | 2010-05-14 19:13:51 +0000 |
commit | 6d7de17a5fbec1dbeac16910a734ad5d1cd30a0d (patch) | |
tree | a3829dbc9479c867ae1a6f10d5815f533fdefc41 /multimedia/mythtv-frontend/files/patch-libs__libmythfreemheg__Programs.cpp | |
parent | By default suexec doesn't enforces different resource limitations configured in (diff) |
- Fix mythtv on CURRENT after r203862
The commit r203862 indirectly broke mythtv because until
that time the missing include of <sys/types.h> caused
that mythtv used gettimeofday(2) instead of ftime(3) and
nobody noticed that building with ftime is broken in
mythtv.
So instead of repairing the deprecated ftime usage I've
removed it and use the gettimeofday fallback as it was
until now but by pure intention now.
Approved by: beat (co-mentor)
Reported by: pointyhat via erwin
Diffstat (limited to 'multimedia/mythtv-frontend/files/patch-libs__libmythfreemheg__Programs.cpp')
-rw-r--r-- | multimedia/mythtv-frontend/files/patch-libs__libmythfreemheg__Programs.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/mythtv-frontend/files/patch-libs__libmythfreemheg__Programs.cpp b/multimedia/mythtv-frontend/files/patch-libs__libmythfreemheg__Programs.cpp new file mode 100644 index 000000000000..b030a44b4a87 --- /dev/null +++ b/multimedia/mythtv-frontend/files/patch-libs__libmythfreemheg__Programs.cpp @@ -0,0 +1,13 @@ +--- libs/libmythfreemheg/Programs.cpp.orig 2009-07-06 22:42:28.000000000 +0200 ++++ libs/libmythfreemheg/Programs.cpp 2010-03-16 13:48:01.000000000 +0100 +@@ -129,9 +129,7 @@ + if (m_Name.Equal("GCD")) { // GetCurrentDate - returns local time. + if (args.Size() == 2) { + struct timeb timebuffer; +-#if HAVE_FTIME +- ftime(&timebuffer); +-#elif HAVE_GETTIMEOFDAY ++#if HAVE_GETTIMEOFDAY + struct timeval time; + struct timezone zone; + |