On DragonFly BSD, sigsegv.c uses a 'struct sigcontext *'. This won't change
soon, since DragonFly BSD supports only one architecture: x86_64.


2021-06-07  Bruno Haible  <[email protected]>

        sigsegv: Document context type for DragonFly BSD.
        * lib/sigsegv.in.h (stackoverflow_context_t): On DragonFly BSD, it is a
        pointer to 'struct sigcontext'.

diff --git a/lib/sigsegv.in.h b/lib/sigsegv.in.h
index e442f4d..9253766 100644
--- a/lib/sigsegv.in.h
+++ b/lib/sigsegv.in.h
@@ -186,7 +186,7 @@ extern int sigsegv_leave_handler (void (*continuation) 
(void*, void*, void*), vo
      || defined __CYGWIN__ || defined __HAIKU__
 typedef ucontext_t *stackoverflow_context_t;
 # elif defined __GNU__ \
-       || defined __FreeBSD_kernel__ || (defined __FreeBSD__ && !(defined 
__sparc__ || defined __sparc64__)) \
+       || defined __FreeBSD_kernel__ || (defined __FreeBSD__ && !(defined 
__sparc__ || defined __sparc64__)) || defined __DragonFly__ \
        || defined __OpenBSD__ || defined __sgi
 typedef struct sigcontext *stackoverflow_context_t;
 # else


Reply via email to