patch 8.2.4560: suspending with CTRL-Z does not work on DragonFlyBSD
Problem: Suspending with CTRL-Z does not work on DragonFlyBSD.
Solution: Adjust #ifdef. (Ozaki Kiichi, closes #9943)
diff --git a/src/os_unix.c b/src/os_unix.c
index e617b12..5b516e0 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -887,9 +887,9 @@
else
got_tstp = TRUE;
-#if !defined(__ANDROID__) && !defined(__OpenBSD__)
- // This is not required on all systems. On some systems (at least Android
- // and OpenBSD) this breaks suspending with CTRL-Z.
+#if !defined(__ANDROID__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
+ // This is not required on all systems. On some systems (at least Android,
+ // OpenBSD, and DragonFlyBSD) this breaks suspending with CTRL-Z.
signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp);
#endif
SIGRETURN;