2012-08-04 10:37:04 -04:00
|
|
|
$OpenBSD: patch-cups_http_c,v 1.10 2012/08/04 14:37:04 ajacoutot Exp $
|
2011-10-15 03:20:43 -04:00
|
|
|
|
|
|
|
Fix build on gcc-2.95 archs.
|
2010-07-13 09:02:47 -04:00
|
|
|
|
2012-08-04 10:37:04 -04:00
|
|
|
--- cups/http.c.orig Sat May 5 00:51:10 2012
|
|
|
|
+++ cups/http.c Thu Jul 26 10:00:31 2012
|
|
|
|
@@ -1500,6 +1500,8 @@ httpInitialize(void)
|
2010-07-13 08:50:44 -04:00
|
|
|
static int initialized = 0; /* Have we been called before? */
|
|
|
|
#ifdef WIN32
|
|
|
|
WSADATA winsockdata; /* WinSock data */
|
|
|
|
+#elif defined(HAVE_SIGACTION)
|
|
|
|
+ struct sigaction action; /* POSIX sigaction data */
|
|
|
|
#endif /* WIN32 */
|
|
|
|
#ifdef HAVE_LIBSSL
|
|
|
|
int i; /* Looping var */
|
2012-08-04 10:37:04 -04:00
|
|
|
@@ -1526,7 +1528,6 @@ httpInitialize(void)
|
2010-07-13 08:50:44 -04:00
|
|
|
sigset(SIGPIPE, SIG_IGN);
|
|
|
|
|
|
|
|
# elif defined(HAVE_SIGACTION)
|
|
|
|
- struct sigaction action; /* POSIX sigaction data */
|
|
|
|
|
|
|
|
|
|
|
|
memset(&action, 0, sizeof(action));
|