~transmissionbt/transmission/ppa-oneiric

« back to all changes in this revision

Viewing changes to debian/patches/0001-libnatpmp_freebsd_ftbfs.patch

  • Committer: Andreas Noteng
  • Date: 2011-09-24 07:47:21 UTC
  • Revision ID: andreas@noteng.no-20110924074721-ijprkm7eebr9wt5e
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From: Leo Costela <costela@debian.org>
2
 
Date: Thu, 14 Oct 2010 03:38:47 +0200
3
 
Subject: [PATCH] libnatpmp_freebsd_ftbfs
4
 
 
5
 
===================================================================
6
 
---
7
 
 third-party/libnatpmp/getgateway.c |    2 +-
8
 
 1 files changed, 1 insertions(+), 1 deletions(-)
9
 
 
10
 
diff --git a/third-party/libnatpmp/getgateway.c b/third-party/libnatpmp/getgateway.c
11
 
index bcde3ad..e9d6cd4 100644
12
 
--- a/third-party/libnatpmp/getgateway.c
13
 
+++ b/third-party/libnatpmp/getgateway.c
14
 
@@ -35,7 +35,7 @@
15
 
 #undef USE_SYSCTL_NET_ROUTE
16
 
 #endif
17
 
 
18
 
-#ifdef BSD
19
 
+#if defined(BSD) || defined(__FreeBSD_kernel__)
20
 
 #undef USE_PROC_NET_ROUTE
21
 
 #define USE_SOCKET_ROUTE
22
 
 #undef USE_SYSCTL_NET_ROUTE