Skip to content

Instantly share code, notes, and snippets.

@sergeycherepanov
Last active May 9, 2020 00:22
Show Gist options
  • Save sergeycherepanov/470f100f21a4e06c84629836cfd7e601 to your computer and use it in GitHub Desktop.
Save sergeycherepanov/470f100f21a4e06c84629836cfd7e601 to your computer and use it in GitHub Desktop.
diff --git src/auto/configure src/auto/configure
index 907ec6c..cb65afd 100755
--- src/auto/configure
+++ src/auto/configure
@@ -11834,6 +11834,7 @@ else
# include <stddef.h>
#endif
#include <signal.h>
+#include <bits/sigaction.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
@@ -11864,6 +11865,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# include <stddef.h>
#endif
#include <signal.h>
+#include <bits/sigaction.h>
#include "confdefs.h"
int
@@ -12497,6 +12499,7 @@ else
/* end confdefs.h. */
#include <sys/types.h>
#include <signal.h>
+#include <bits/sigaction.h>
int
main ()
@@ -12536,6 +12539,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <signal.h>
+#include <bits/sigaction.h>
test_sig()
{
struct sigcontext *scont;
@@ -13674,6 +13678,7 @@ else
/* end confdefs.h. */
#include <sys/consio.h>
#include <signal.h>
+ #include <bits/sigaction.h>
#include <sys/fbio.h>
int
main ()
diff --git src/configure.ac src/configure.ac
index 2a31f41..da2a33d 100644
--- src/configure.ac
+++ src/configure.ac
@@ -3343,6 +3343,7 @@ else
# include <stddef.h>
#endif
#include <signal.h>
+#include <bits/sigaction.h>
], ac_cv_type_stack_t=yes, ac_cv_type_stack_t=no)
AC_MSG_RESULT($ac_cv_type_stack_t)
fi
@@ -3361,6 +3362,7 @@ AC_TRY_COMPILE([
# include <stddef.h>
#endif
#include <signal.h>
+#include <bits/sigaction.h>
#include "confdefs.h"
], [stack_t sigstk; sigstk.ss_base = 0; ],
AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SS_BASE),
@@ -3672,6 +3674,7 @@ dnl check if struct sigcontext is defined (used for SGI only)
AC_MSG_CHECKING(for struct sigcontext)
AC_TRY_COMPILE([
#include <signal.h>
+#include <bits/sigaction.h>
test_sig()
{
struct sigcontext *scont;
@@ -3971,6 +3974,7 @@ if test "$enable_sysmouse" = "yes"; then
AC_TRY_LINK(
[#include <sys/consio.h>
#include <signal.h>
+ #include <bits/sigaction.h>
#include <sys/fbio.h>],
[struct mouse_info mouse;
mouse.operation = MOUSE_MODE;
diff --git src/os_unix.h src/os_unix.h
index ca2ce70..7139fac 100644
--- src/os_unix.h
+++ src/os_unix.h
@@ -136,6 +136,7 @@
#endif
#include <signal.h>
+#include <bits/sigaction.h>
#if defined(DIRSIZ) && !defined(MAXNAMLEN)
# define MAXNAMLEN DIRSIZ
@@ -176,6 +177,7 @@
# include <unixio.h>
# include <unixlib.h>
# include <signal.h>
+# include <bits/sigaction.h>
# include <file.h>
# include <ssdef.h>
# include <descrip.h>
diff --git src/pty.c src/pty.c
index 7171734..6e257c7 100644
--- src/pty.c
+++ src/pty.c
@@ -46,6 +46,7 @@
#if defined(FEAT_GUI) || defined(FEAT_JOB_CHANNEL)
#include <signal.h>
+#include <bits/sigaction.h>
#ifdef __CYGWIN32__
# include <sys/termios.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment