Files
pkgsrc-ng/devel/cmake/patches/patch-zz-minix-a
2016-01-22 00:05:40 +01:00

24 lines
820 B
Plaintext

--- Source/kwsys/SystemInformation.cxx.orig Thu Apr 23 08:25:23 2015
+++ Source/kwsys/SystemInformation.cxx Thu Apr 23 08:25:29 2015
@@ -81,7 +81,7 @@
# include <errno.h> // extern int errno;
#endif
-#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+#if defined(__OpenBSD__) || defined(__minix) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
# include <sys/param.h>
# include <sys/sysctl.h>
# include <sys/socket.h>
@@ -3703,7 +3703,11 @@
// install ours
struct sigaction sa;
sa.sa_sigaction=(SigAction)StacktraceSignalHandler;
+# if defined(__minix)
+ sa.sa_flags=SA_RESETHAND;
+# else
sa.sa_flags=SA_SIGINFO|SA_RESETHAND;
+# endif /* defined(__minix) */
# ifdef SA_RESTART
sa.sa_flags|=SA_RESTART;
# endif