~ubuntu-branches/ubuntu/trusty/socket++/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/hurd4.patch

  • Committer: Package Import Robot
  • Author(s): Mathieu Malaterre
  • Date: 2013-12-30 14:15:34 UTC
  • Revision ID: package-import@ubuntu.com-20131230141534-3f1weuh23lxjct14
Tags: 1.12.13-5
Yet another round of fixes for Hurd/kFreeBSD

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix compilation issue on kFreeBSD and HURD
 
2
Author: Mathieu Malaterre <malat@debian.org>
 
3
Forwarded: no
 
4
 
 
5
--- socket++-1.12.13.orig/socket++/ftp.cpp
 
6
+++ socket++-1.12.13/socket++/ftp.cpp
 
7
@@ -20,6 +20,10 @@
 
8
 #include <stdio.h> // for sprintf
 
9
 #include <errno.h>
 
10
 
 
11
+#include <sys/socket.h>
 
12
+#include <netinet/in.h>
 
13
+#include <arpa/inet.h>
 
14
+
 
15
 using namespace std;
 
16
 
 
17
 #if defined (__osf__) && defined (__DECCXX)
 
18
--- socket++-1.12.13.orig/socket++/sockstream.h
 
19
+++ socket++-1.12.13/socket++/sockstream.h
 
20
@@ -137,7 +137,7 @@ public:
 
21
     msg_peek           = MSG_PEEK,
 
22
     msg_dontroute      = MSG_DONTROUTE,
 
23
 
 
24
-#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__))
 
25
+#if !(defined(__FreeBSD__) || defined(__GNU__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__))
 
26
     msg_maxiovlen      = MSG_MAXIOVLEN
 
27
 #endif
 
28
   };