]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/patches/smartmontools-6.5-exit_segfault.patch
smartmontools: Update to 6.5
[ipfire-2.x.git] / src / patches / smartmontools-6.5-exit_segfault.patch
diff --git a/src/patches/smartmontools-6.5-exit_segfault.patch b/src/patches/smartmontools-6.5-exit_segfault.patch
new file mode 100644 (file)
index 0000000..6c5df8a
--- /dev/null
@@ -0,0 +1,16 @@
+--- a/utility.h        Sun Apr 24 16:59:15 2016
++++ b/utility.h        Sat Aug 20 22:40:33 2016
+@@ -97,7 +97,11 @@
+ // Replacement for exit(status)
+ // (exit is not compatible with C++ destructors)
+-#define EXIT(status) { throw (int)(status); }
++
++//This doesn't work on IPFire.
++//#define EXIT(status) { throw (int)(status); }
++//tried to use exit and found no problems yet
++#define EXIT(status) { exit ((int)(status)); }
+ // Compile time check of byte ordering
+ // (inline const function allows compiler to remove dead code)
+