Print this page
rev 9959 : 8026385: [macosx] (awt) setjmp/longjmp changes the process signal mask on OS X
Contributed-by: David DeHaven <>

@@ -45,10 +45,16 @@
 #undef boolean
 #undef FAR
 #include <jpeglib.h>
 #include "jerror.h"
+#ifdef __APPLE__
+/* use setjmp/longjmp versions that do not save/restore the signal mask */
+#define setjmp _setjmp
+#define longjmp _longjmp
 /* The method IDs we cache. Note that the last two belongs to the
  * class.
 static jmethodID sendHeaderInfoID;
 static jmethodID sendPixelsByteID;