diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-12-19 16:58:03 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-12-19 16:58:03 +0200 |
commit | 70bbf4686f352a7ff557458b234bdeabe2749ac2 (patch) | |
tree | 31a51b739289f36f4d928d7aa6bb049e1b150cb6 | |
parent | 19758c412e50d444484b4483eec18848872ccf88 (diff) | |
download | gnutls-70bbf4686f352a7ff557458b234bdeabe2749ac2.tar.gz |
certtool: do not use signal() under win32
-rw-r--r-- | src/certtool.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/certtool.c b/src/certtool.c index 7fb5f5d8fb..a70c535dc1 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -38,7 +38,9 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> -#include <signal.h> +#ifndef _WIN32 +# include <signal.h> +#endif /* Gnulib portability files. */ #include <read-file.h> @@ -103,7 +105,9 @@ static void tls_log_func(int level, const char *str) int main(int argc, char **argv) { +#ifndef _WIN32 signal(SIGPIPE, SIG_IGN); +#endif cfg_init(); cmd_parser(argc, argv); |