--- old/src/share/native/sun/awt/image/jpeg/imageioJPEG.c 2014-05-13 23:15:19.000000000 -0700 +++ new/src/share/native/sun/awt/image/jpeg/imageioJPEG.c 2014-05-13 23:15:19.000000000 -0700 @@ -56,6 +56,12 @@ #undef MAX #define MAX(a,b) ((a) > (b) ? (a) : (b)) +#ifdef __APPLE__ +/* use setjmp/longjmp versions that do not save/restore the signal mask */ +#define setjmp _setjmp +#define longjmp _longjmp +#endif + /* Cached Java method ids */ static jmethodID JPEGImageReader_readInputDataID; static jmethodID JPEGImageReader_skipInputBytesID;