5ed4b10993efe2da6b89ee3926ee49eba3f1c75f
[people/pmueller/ipfire-2.x.git] / src / patches / smartmontools-5.39-error_throw_int.patch
1 diff -Naur smartmontools-5.39-svn_r2877/utility.h smartmontools-5.39-svn_r2877.new/utility.h
2 --- smartmontools-5.39-svn_r2877/utility.h 2009-08-24 12:48:50.000000000 +0200
3 +++ smartmontools-5.39-svn_r2877.new/utility.h 2009-08-29 09:11:07.000000000 +0200
4 @@ -102,7 +102,11 @@
5
6 // Replacement for exit(status)
7 // (exit is not compatible with C++ destructors)
8 -#define EXIT(status) { throw (int)(status); }
9 +
10 +//This doesn't work on IPFire.
11 +//#define EXIT(status) { throw (int)(status); }
12 +//tried to use exit and found no problems yet
13 +#define EXIT(status) { exit ((int)(status)); }
14
15
16 #ifdef OLD_INTERFACE