Re: [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 <[email protected]>
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <CAK9US3DXWNTZcnd-p7iobvErvvdgX021KmFqoKiY6LwpZ8wCEg@mail.gmail.com>
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 <[email protected]> wrote:

> From: Thomas Klausner <[email protected]>
>
> ---
>  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
>
>

_______________________________________________
libdvbpsi-devel mailing list
[email protected]
http://mailman.videolan.org/listinfo/libdvbpsi-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.