From 1864e76ea7323fd8789d9c8b5b3c8ca27d4840a6 Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Fri, 10 Jul 2020 12:53:52 -0700 Subject: Some Windows quality of life improvments. (#846) * Don't try to ignore SIGPIPE in Windows (it doesn't exist). * Add an include to our win32.h compatibility header. * Enable building examples on Travis in Windows. See #831 --- examples/example-libevent-ssl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/example-libevent-ssl.c') diff --git a/examples/example-libevent-ssl.c b/examples/example-libevent-ssl.c index aac5770..7d99af1 100644 --- a/examples/example-libevent-ssl.c +++ b/examples/example-libevent-ssl.c @@ -34,7 +34,10 @@ void disconnectCallback(const redisAsyncContext *c, int status) { } int main (int argc, char **argv) { +#ifndef _WIN32 signal(SIGPIPE, SIG_IGN); +#endif + struct event_base *base = event_base_new(); if (argc < 5) { fprintf(stderr, -- cgit v1.2.3