]> granicus.if.org Git - gc/commitdiff
Fix MPROTECT_VDB definition for single-threaded GC builds
authorIvan Maidanski <ivmai@mail.ru>
Wed, 10 Apr 2019 20:33:39 +0000 (23:33 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 10 Apr 2019 20:33:39 +0000 (23:33 +0300)
(fix of commit 6d9eec852)

* include/private/gcconfig.h [MPROTECT_VDB && !MSWIN32 && !MSWINCE]:
Include signal.h.

include/private/gcconfig.h

index 9b5e8b1d2efbc21df2b84b06b62efabd9f8dec2b..16ce7ab1b48ad498062a285fd644f056ac144204 100644 (file)
@@ -3158,6 +3158,10 @@ EXTERN_C_BEGIN
 # undef MPROTECT_VDB
 #endif
 
+#if defined(MPROTECT_VDB) && !defined(MSWIN32) && !defined(MSWINCE)
+# include <signal.h> /* for SA_SIGINFO, SIGBUS */
+#endif
+
 #if defined(SIGBUS) && !defined(HAVE_SIGBUS) && !defined(CPPCHECK)
 # define HAVE_SIGBUS
 #endif