diff options
Diffstat (limited to 'media-tv/mythfrontend/files/gcc-3.4-fix.patch')
-rw-r--r-- | media-tv/mythfrontend/files/gcc-3.4-fix.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/media-tv/mythfrontend/files/gcc-3.4-fix.patch b/media-tv/mythfrontend/files/gcc-3.4-fix.patch new file mode 100644 index 000000000000..097177687318 --- /dev/null +++ b/media-tv/mythfrontend/files/gcc-3.4-fix.patch @@ -0,0 +1,39 @@ +diff -ur mythtv-0.15.1.orig/libs/libmythtv/fifowriter.cpp mythtv-0.15.1/libs/libmythtv/fifowriter.cpp +--- mythtv-0.15.1.orig/libs/libmythtv/fifowriter.cpp 2004-06-02 21:06:54.427866608 +0100 ++++ mythtv-0.15.1/libs/libmythtv/fifowriter.cpp 2004-06-02 21:08:37.942130048 +0100 +@@ -21,9 +21,9 @@ + maxblksize = new long[count]; + killwr = new int[count]; + fbcount = new int[count]; +- fifo_buf = new (struct fifo_buf *)[count]; +- fb_inptr = new (struct fifo_buf *)[count]; +- fb_outptr = new (struct fifo_buf *)[count]; ++ fifo_buf = new fifo_ptr[count]; ++ fb_inptr = new fifo_ptr[count]; ++ fb_outptr = new fifo_ptr[count]; + fifothrds = new pthread_t[count]; + fifo_lock = new pthread_mutex_t [count]; + empty_cond = new pthread_cond_t[count]; +diff -ur mythtv-0.15.1.orig/libs/libmythtv/fifowriter.h mythtv-0.15.1/libs/libmythtv/fifowriter.h +--- mythtv-0.15.1.orig/libs/libmythtv/fifowriter.h 2004-06-02 21:06:54.423867216 +0100 ++++ mythtv-0.15.1/libs/libmythtv/fifowriter.h 2004-06-02 21:08:03.708334376 +0100 +@@ -29,6 +29,7 @@ + long blksize; + } **fifo_buf, **fb_inptr, **fb_outptr; + ++ typedef struct fifo_buf* fifo_ptr; + pthread_t *fifothrds; + pthread_mutex_t *fifo_lock; + pthread_cond_t *full_cond, *empty_cond; +diff -ur mythtv-0.15.1.orig/settings.pro mythtv-0.15.1/settings.pro +--- mythtv-0.15.1.orig/settings.pro 2004-06-02 21:06:54.474859464 +0100 ++++ mythtv-0.15.1/settings.pro 2004-06-02 21:07:07.013953232 +0100 +@@ -14,7 +14,7 @@ + + release { + DEFINES += MMX +- QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentiumpro -fomit-frame-pointer ++ QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentiumpro -fomit-frame-pointer -fpermissive + QMAKE_CFLAGS_RELEASE = $${QMAKE_CXXFLAGS_RELEASE} + } + |