diff -Nru gcc-6.4.0/libjava.orig/include/i386-signal.h gcc-6.4.0/libjava/include/i386-signal.h --- gcc-6.4.0/libjava.orig/include/i386-signal.h 2011-12-20 13:18:26.524825000 +0100 +++ gcc-6.4.0/libjava/include/i386-signal.h 2017-10-21 19:28:54.131211566 +0200 @@ -29,7 +29,7 @@ #define HANDLE_DIVIDE_OVERFLOW \ do \ { \ - struct ucontext *_uc = (struct ucontext *)_p; \ + struct ucontext_t *_uc = (struct ucontext_t *)_p; \ gregset_t &_gregs = _uc->uc_mcontext.gregs; \ unsigned char *_eip = (unsigned char *)_gregs[REG_EIP]; \ \ diff -Nru gcc-6.4.0/libjava.orig/include/x86_64-signal.h gcc-6.4.0/libjava/include/x86_64-signal.h --- gcc-6.4.0/libjava.orig/include/x86_64-signal.h 2017-10-21 19:28:37.415142991 +0200 +++ gcc-6.4.0/libjava/include/x86_64-signal.h 2017-10-21 19:12:38.627239709 +0200 @@ -28,7 +28,7 @@ #define HANDLE_DIVIDE_OVERFLOW \ do \ { \ - struct ucontext *_uc = (struct ucontext *)_p; \ + struct ucontext_t *_uc = (struct ucontext_t *)_p; \ gregset_t &_gregs = _uc->uc_mcontext.gregs; \ unsigned char *_rip = (unsigned char *)_gregs[REG_RIP]; \ \