--- old/src/share/native/sun/awt/image/jpeg/jpegdecoder.c 2014-05-13 23:15:20.000000000 -0700 +++ new/src/share/native/sun/awt/image/jpeg/jpegdecoder.c 2014-05-13 23:15:20.000000000 -0700 @@ -47,6 +47,12 @@ #include #include "jerror.h" +#ifdef __APPLE__ +/* use setjmp/longjmp versions that do not save/restore the signal mask */ +#define setjmp _setjmp +#define longjmp _longjmp +#endif + /* The method IDs we cache. Note that the last two belongs to the * java.io.InputStream class. */