[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".

Jean-Paul Saman jpsaman at videolan.org
Mon Jan 28 09:34:06 CET 2013


Thomas,

Patch applied. It will show up on git.videolan.org/libdvbpsi.git shortly.

Kind regards,

Jean-Paul Saman


On Wed, Jan 23, 2013 at 2:57 PM, Thomas Klausner <tk at giga.or.at> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/libdvbpsi-devel/attachments/20130128/6fd4efee/attachment.html>


More information about the libdvbpsi-devel mailing list