]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/smartmontools-6.5-exit_segfault.patch
core115: Include captive portal in updater
[ipfire-2.x.git] / src / patches / smartmontools-6.5-exit_segfault.patch
CommitLineData
53aad60d
MF
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 @@
c49fbacc
AF
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
53aad60d
MF
14 // Compile time check of byte ordering
15 // (inline const function allows compiler to remove dead code)
16