diff --git a/libguile/posix.c b/libguile/posix.c index b5352c2c4..116843bcf 100644 --- a/libguile/posix.c +++ b/libguile/posix.c @@ -52,7 +52,9 @@ #ifdef __MINGW32__ # include "posix-w32.h" -#endif +# define SIGHUP 1 +# define SIGPIPE 13 +#endif /* __MINGW32__ */ #include "async.h" #include "bitvectors.h" diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c index 17164f4cc..d42af0d61 100644 --- a/libguile/scmsigs.c +++ b/libguile/scmsigs.c @@ -306,6 +306,23 @@ scm_sigaction (SCM signum, SCM handler, SCM flags) return scm_sigaction_for_thread (signum, handler, flags, SCM_UNDEFINED); } +#if __MINGW32__ + +SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0, + (SCM signum, SCM handler, SCM flags, SCM thread), + "sigaction stub") +#define FUNC_NAME s_scm_sigaction_for_thread +{ + (void) signum; + (void) handler; + (void) flags; + (void) thread; + return SCM_UNSPECIFIED; +} +#undef FUNC_NAME + +#else /* !__MINGW32__ */ + /* user interface for installation of signal handlers. */ SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0, (SCM signum, SCM handler, SCM flags, SCM thread), @@ -501,6 +518,8 @@ SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0, } #undef FUNC_NAME +#endif /* !__MINGW32__ */ + SCM_DEFINE (scm_restore_signals, "restore-signals", 0, 0, 0, (void), "Return all signal handlers to the values they had before any call to\n"