c1f3074d18
While here, create cups's printcap under /etc/cups/ because we are running unpriviledged so we cannot touch /etc/printcap. Tweak rc script accordingly.
24 lines
718 B
Plaintext
24 lines
718 B
Plaintext
$OpenBSD: patch-cups_http_c,v 1.9 2012/02/16 22:12:08 ajacoutot Exp $
|
|
|
|
Fix build on gcc-2.95 archs.
|
|
|
|
--- cups/http.c.orig Fri Dec 16 08:16:04 2011
|
|
+++ cups/http.c Mon Feb 6 11:14:32 2012
|
|
@@ -1481,6 +1481,8 @@ httpInitialize(void)
|
|
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 */
|
|
@@ -1507,7 +1509,6 @@ httpInitialize(void)
|
|
sigset(SIGPIPE, SIG_IGN);
|
|
|
|
# elif defined(HAVE_SIGACTION)
|
|
- struct sigaction action; /* POSIX sigaction data */
|
|
|
|
|
|
memset(&action, 0, sizeof(action));
|