- Fix compilation of SO_PEERCRED support.

This commit is contained in:
Tim Waugh 2008-02-05 16:58:04 +00:00
parent 11fbd76145
commit bfbe8f587c
2 changed files with 25 additions and 0 deletions

22
cups-peercred.patch Normal file
View File

@ -0,0 +1,22 @@
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 <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#include <sys/socket.h>
#include <sys/stat.h>
#if defined(WIN32) || defined(__EMX__)
# include <io.h>
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 <sys/param.h>
#endif /* HAVE_SYS_PARAM_H */
+#include <sys/socket.h>
#ifdef HAVE_SYS_UCRED_H
# include <sys/ucred.h>
typedef struct xucred cupsd_ucred_t;

View File

@ -39,6 +39,7 @@ Patch11: cups-paps.patch
Patch12: cups-wbuffer.patch Patch12: cups-wbuffer.patch
Patch13: cups-direct-usb.patch Patch13: cups-direct-usb.patch
Patch14: cups-lpr-help.patch Patch14: cups-lpr-help.patch
Patch15: cups-peercred.patch
Patch16: cups-pid.patch Patch16: cups-pid.patch
Patch17: cups-foomatic-recommended.patch Patch17: cups-foomatic-recommended.patch
Patch19: cups-eggcups.patch Patch19: cups-eggcups.patch
@ -152,6 +153,7 @@ lpd emulation.
%patch12 -p1 -b .wbuffer %patch12 -p1 -b .wbuffer
%patch13 -p1 -b .direct-usb %patch13 -p1 -b .direct-usb
%patch14 -p1 -b .lpr-help %patch14 -p1 -b .lpr-help
%patch15 -p1 -b .peercred
%patch16 -p1 -b .pid %patch16 -p1 -b .pid
%patch17 -p1 -b .foomatic-recommended %patch17 -p1 -b .foomatic-recommended
%patch19 -p1 -b .eggcups %patch19 -p1 -b .eggcups
@ -451,6 +453,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue Feb 5 2008 Tim Waugh <twaugh@redhat.com> 1:1.3.5-4 * Tue Feb 5 2008 Tim Waugh <twaugh@redhat.com> 1:1.3.5-4
- Fix compilation of SO_PEERCRED support.
- Include fixes from svn up to revision 7287. No longer need str2650 or - Include fixes from svn up to revision 7287. No longer need str2650 or
str2664 patches. str2664 patches.