Magellan Linux

Annotation of /trunk/dvd+rw-tools/patches/dvd+rw-tools-7.1-gcc43.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 554 - (hide annotations) (download)
Fri Mar 28 09:52:43 2008 UTC (16 years, 2 months ago) by niro
File size: 1546 byte(s)
-fixed build with gcc42 and gcc43

1 niro 554 diff --git a/source/apps/dvd+rw-tools/gcc43.diff b/source/apps/dvd+rw-tools/gcc43.diff
2     new file mode 100644
3     index 0000000..604379b
4     --- /dev/null
5     +++ b/source/apps/dvd+rw-tools/gcc43.diff
6     @@ -0,0 +1,36 @@
7     +From 38a48e7fd68973d2a1ccc1f7f59d5d0b59d2b74b Mon Sep 17 00:00:00 2001
8     +From: Miklos Vajna <vmiklos at frugalware.org>
9     +Date: Sat, 15 Mar 2008 12:27:31 +0100
10     +Subject: [PATCH] Fix built with gcc-4.3 and newer
11     +
12     +make[1]: Entering directory `/var/tmp/fst/src/dvd+rw-tools-7.1'
13     +gcc -march=i686 -O2 -pipe -fno-strict-aliasing -O2 -D_REENTRANT -c -o growisofs.o growisofs.c
14     +g++ -march=i686 -O2 -pipe -fno-strict-aliasing -O2 -fno-exceptions -D_REENTRANT -c -o growisofs_mmc.o growisofs_mmc.cpp
15     +In file included from growisofs_mmc.cpp:17:
16     +transport.hxx: In member function 'int Scsi_Command::is_reload_needed(int)':
17     +transport.hxx:366: error: 'INT_MAX' was not declared in this scope
18     +make[1]: *** [growisofs_mmc.o] Error 1
19     +make[1]: Leaving directory `/var/tmp/fst/src/dvd+rw-tools-7.1'
20     +make: *** [all] Error 2
21     +
22     +This is becase limits.h is no longer automatically included in this
23     +version.
24     +---
25     + transport.hxx | 1 +
26     + 1 files changed, 1 insertions(+), 0 deletions(-)
27     +
28     +diff --git a/transport.hxx b/transport.hxx
29     +index 35a57a7..412aaaa 100644
30     +--- a/transport.hxx
31     ++++ b/transport.hxx
32     +@@ -142,6 +142,7 @@ extern "C" char *plusminus_locale()
33     + #include <sys/ioctl.h>
34     + #include <linux/cdrom.h>
35     + #include <mntent.h>
36     ++#include <limits.h>
37     + #include <sys/wait.h>
38     + #include <sys/utsname.h>
39     + #include <scsi/sg.h>
40     +--
41     +1.5.4.3
42     +