[libdvbpsi-devel] [PATCH 1/2] Remove unnecessary #ifndef BSD. netinet/ip.h is a standard header on *BSD. Also, most BSDs don't define "BSD".
Thomas Klausner
tk at giga.or.at
Wed Jan 23 14:57:28 CET 2013
From: Thomas Klausner <wiz at NetBSD.org>
---
examples/connect.c | 4 +---
examples/dvbinfo/tcp.c | 4 +---
examples/dvbinfo/udp.c | 4 +---
3 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/examples/connect.c b/examples/connect.c
index 211713b..4f6e102 100644
--- a/examples/connect.c
+++ b/examples/connect.c
@@ -38,9 +38,7 @@
# include <netinet/if_ether.h>
#endif
#include <netdb.h>
-#ifndef BSD
-# include <netinet/ip.h>
-#endif
+#include <netinet/ip.h>
#include <netinet/udp.h>
#include <arpa/inet.h>
diff --git a/examples/dvbinfo/tcp.c b/examples/dvbinfo/tcp.c
index 3030776..db3ad2b 100644
--- a/examples/dvbinfo/tcp.c
+++ b/examples/dvbinfo/tcp.c
@@ -45,9 +45,7 @@
# include <netinet/if_ether.h>
# endif
# include <netdb.h>
-# ifndef BSD
-# include <netinet/ip.h>
-# endif
+# include <netinet/ip.h>
# include <netinet/udp.h>
# include <arpa/inet.h>
#endif
diff --git a/examples/dvbinfo/udp.c b/examples/dvbinfo/udp.c
index 8f61a5a..5d65be0 100644
--- a/examples/dvbinfo/udp.c
+++ b/examples/dvbinfo/udp.c
@@ -42,9 +42,7 @@
# include <netinet/if_ether.h>
# endif
# include <netdb.h>
-# ifndef BSD
-# include <netinet/ip.h>
-# endif
+# include <netinet/ip.h>
# include <netinet/udp.h>
# include <arpa/inet.h>
#endif
--
1.8.1
More information about the libdvbpsi-devel
mailing list