bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / code / Atom feed
* sigsegv: Document context type for DragonFly BSD
@ 2021-06-08  1:24 Bruno Haible
  0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2021-06-08  1:24 UTC (permalink / raw)
  To: bug-gnulib

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  <bruno@clisp.org>

	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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-10 20:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  1:24 sigsegv: Document context type for DragonFly BSD Bruno Haible

Code repositories for project(s) associated with this inbox:

	../../../mirrors/gnulib.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).