Annotation of /trunk/dvd+rw-tools/patches/dvd+rw-tools-7.1-gcc43.patch
Parent Directory | Revision Log
Revision 555 -
(hide annotations)
(download)
Fri Mar 28 10:03:20 2008 UTC (16 years, 6 months ago) by niro
File size: 1219 byte(s)
Fri Mar 28 10:03:20 2008 UTC (16 years, 6 months ago) by niro
File size: 1219 byte(s)
-fixed the patch
1 | niro | 555 | From 38a48e7fd68973d2a1ccc1f7f59d5d0b59d2b74b Mon Sep 17 00:00:00 2001 |
2 | From: Miklos Vajna <vmiklos at frugalware.org> | ||
3 | Date: Sat, 15 Mar 2008 12:27:31 +0100 | ||
4 | Subject: [PATCH] Fix built with gcc-4.3 and newer | ||
5 | |||
6 | make[1]: Entering directory `/var/tmp/fst/src/dvd+rw-tools-7.1' | ||
7 | gcc -march=i686 -O2 -pipe -fno-strict-aliasing -O2 -D_REENTRANT -c -o growisofs.o growisofs.c | ||
8 | g++ -march=i686 -O2 -pipe -fno-strict-aliasing -O2 -fno-exceptions -D_REENTRANT -c -o growisofs_mmc.o growisofs_mmc.cpp | ||
9 | In file included from growisofs_mmc.cpp:17: | ||
10 | transport.hxx: In member function 'int Scsi_Command::is_reload_needed(int)': | ||
11 | transport.hxx:366: error: 'INT_MAX' was not declared in this scope | ||
12 | make[1]: *** [growisofs_mmc.o] Error 1 | ||
13 | make[1]: Leaving directory `/var/tmp/fst/src/dvd+rw-tools-7.1' | ||
14 | make: *** [all] Error 2 | ||
15 | |||
16 | This is becase limits.h is no longer automatically included in this | ||
17 | version. | ||
18 | |||
19 | diff --git a/transport.hxx b/transport.hxx | ||
20 | index 35a57a7..412aaaa 100644 | ||
21 | --- a/transport.hxx | ||
22 | +++ b/transport.hxx | ||
23 | @@ -142,6 +142,7 @@ extern "C" char *plusminus_locale() | ||
24 | #include <sys/ioctl.h> | ||
25 | #include <linux/cdrom.h> | ||
26 | #include <mntent.h> | ||
27 | +#include <limits.h> | ||
28 | #include <sys/wait.h> | ||
29 | #include <sys/utsname.h> | ||
30 | #include <scsi/sg.h> | ||
31 | -- |