]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/smartmontools-6.5-exit_segfault.patch
python3-msgpack: Fix build on i586
[people/pmueller/ipfire-2.x.git] / src / patches / smartmontools-6.5-exit_segfault.patch
1 --- a/utility.h Sun Apr 24 16:59:15 2016
2 +++ b/utility.h Sat Aug 20 22:40:33 2016
3 @@ -97,7 +97,11 @@
4
5 // Replacement for exit(status)
6 // (exit is not compatible with C++ destructors)
7 -#define EXIT(status) { throw (int)(status); }
8 +
9 +//This doesn't work on IPFire.
10 +//#define EXIT(status) { throw (int)(status); }
11 +//tried to use exit and found no problems yet
12 +#define EXIT(status) { exit ((int)(status)); }
13
14 // Compile time check of byte ordering
15 // (inline const function allows compiler to remove dead code)
16