From 75e0a3395ec0699613d46be2381f4ba9296d5d40 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 5 Feb 2008 18:20:46 +0000 Subject: [PATCH] - Fix compilation of SO_PEERCRED support. --- cups-peercred.patch | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/cups-peercred.patch b/cups-peercred.patch index 8dd3fea..4e579b4 100644 --- a/cups-peercred.patch +++ b/cups-peercred.patch @@ -1,22 +1,11 @@ -diff -up cups-1.3.5/cups/auth.c.peercred cups-1.3.5/cups/auth.c ---- cups-1.3.5/cups/auth.c.peercred 2008-02-05 16:50:17.000000000 +0000 -+++ cups-1.3.5/cups/auth.c 2008-02-05 16:50:22.000000000 +0000 -@@ -36,6 +36,7 @@ - #include - #include - #include -+#include - #include - #if defined(WIN32) || defined(__EMX__) - # include diff -up cups-1.3.5/scheduler/auth.c.peercred cups-1.3.5/scheduler/auth.c ---- cups-1.3.5/scheduler/auth.c.peercred 2008-02-05 15:44:57.000000000 +0000 -+++ cups-1.3.5/scheduler/auth.c 2008-02-05 16:50:36.000000000 +0000 -@@ -86,6 +86,7 @@ extern const char *cssmErrorString(int e - #ifdef HAVE_SYS_PARAM_H - # include - #endif /* HAVE_SYS_PARAM_H */ -+#include - #ifdef HAVE_SYS_UCRED_H - # include - typedef struct xucred cupsd_ucred_t; +--- cups-1.3.5/scheduler/auth.c.peercred 2008-02-05 16:52:20.000000000 +0000 ++++ cups-1.3.5/scheduler/auth.c 2008-02-05 18:20:06.000000000 +0000 +@@ -54,6 +54,7 @@ + * Include necessary headers... + */ + ++#define _GNU_SOURCE + #include "cupsd.h" + #include + #ifdef HAVE_SHADOW_H