pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45196: sane-backends: add missing sys/socket.h include to two files



>Number:         45196
>Category:       pkg
>Synopsis:       sane-backends: add missing sys/socket.h include to two files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 30 21:45:00 +0000 2011
>Originator:     Alex Hornung
>Release:        DragonFly 2.11
>Organization:
DragonFly BSD
>Environment:
DragonFly alex-pc.local 2.11-DEVELOPMENT DragonFly 
v2.11.0.605.gc3dc9-DEVELOPMENT #0: Fri Jul 29 13:17:18 UTC 2011     
root%pkgbox64.dragonflybsd.org@localhost:/usr/obj/usr/src/sys/X86_64_GENERIC  
x86_64

>Description:
Two files of sane-backends are missing sys/socket.h include files. 

The patch at: http://leaf.dragonflybsd.org/~alexh/sane-backends.patch fixes the 
issue.
>How-To-Repeat:

>Fix:
From a6e35af84d5ae706c2fe694cdf29147e30440a8a Mon Sep 17 00:00:00 2001
From: Alex Hornung <ahornung%gmail.com@localhost>
Date: Sat, 30 Jul 2011 22:40:40 +0100
Subject: [PATCH] graphics/sane-backends: add two missing sys/socket.h
 includes

---
 graphics/sane-backends/distinfo         |    1 +
 graphics/sane-backends/patches/patch-al |   27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 graphics/sane-backends/patches/patch-al

diff --git a/graphics/sane-backends/distinfo b/graphics/sane-backends/distinfo
index fd43e44..a736013 100644
--- a/graphics/sane-backends/distinfo
+++ b/graphics/sane-backends/distinfo
@@ -14,3 +14,4 @@ SHA1 (patch-ah) = 6e747c3b541c9ebb57db6477ac6b6e48b1df0248
 SHA1 (patch-ai) = 74f27b5a66e3dfd96337cb00a4ff3bc48804256b
 SHA1 (patch-aj) = c2e0733796872f1b074d0491dea4cffa1891bccc
 SHA1 (patch-ak) = f00d3773c14f9955565debc0d16231906a2bba76
+SHA1 (patch-al) = 7a38972755e725194a5c6c66d9d7ae0908f75507
diff --git a/graphics/sane-backends/patches/patch-al 
b/graphics/sane-backends/patches/patch-al
new file mode 100644
index 0000000..88ddf8c
--- /dev/null
+++ b/graphics/sane-backends/patches/patch-al
@@ -0,0 +1,27 @@
+--- backend/xerox_mfp-tcp.c.orig       2011-07-30 22:36:12.730706000 +0100
++++ backend/xerox_mfp-tcp.c    2011-07-30 22:36:30.600731000 +0100
+@@ -28,6 +28,10 @@
+ #include <errno.h>
+ #include <sys/time.h>
+ 
++#ifdef HAVE_SYS_SOCKET_H
++#include <sys/socket.h>
++#endif
++
+ #include "sane/saneopts.h"
+ #include "sane/sanei_scsi.h"
+ #include "sane/sanei_usb.h"
+--- backend/magicolor.c.orig   2011-07-30 22:35:56.550684000 +0100
++++ backend/magicolor.c        2011-07-30 22:36:23.550722000 +0100
+@@ -50,6 +50,11 @@
+ #include <unistd.h>
+ #include <errno.h>
+ #include <sys/time.h>
++
++#ifdef HAVE_SYS_SOCKET_H
++#include <sys/socket.h>
++#endif
++
+ #include <math.h>
+ #include <poll.h>
+ 
-- 
1.7.6




Home | Main Index | Thread Index | Old Index