[libdvbpsi-devel] [PATCH] Compilation fix for BSD Operating Systems.

Brad brad at comstyle.com
Fri May 6 23:24:41 CEST 2011


Change the #ifndef to also cover the various other BSD Operating Systems which need
this to be able to build.


>From d9aaee82ebcb3b65c8cf9df5a1fd52c0673b674e Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Fri, 6 May 2011 17:19:52 -0400
Subject: [PATCH] Fix compilation on other BSD Operating Systems such as OpenBSD, NetBSD
 and DragonFly.

---
 examples/connect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/examples/connect.c b/examples/connect.c
index f10c513..211713b 100644
--- a/examples/connect.c
+++ b/examples/connect.c
@@ -38,7 +38,7 @@
 #   include <netinet/if_ether.h>
 #endif
 #include <netdb.h>
-#ifndef __FreeBSD__
+#ifndef BSD
 #    include <netinet/ip.h>
 #endif
 #include <netinet/udp.h>
-- 
1.7.3.5


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the libdvbpsi-devel mailing list