public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: libc-alpha@sourceware.org,  commit-hurd@gnu.org
Subject: Re: [PATCH] netinet/in.h: Add ip_mreqn structure
Date: Mon, 15 Aug 2022 15:13:53 +0200	[thread overview]
Message-ID: <87pmh1k5ta.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <20220813210353.3553836-1-samuel.thibault@ens-lyon.org> (Samuel Thibault's message of "Sat, 13 Aug 2022 23:03:53 +0200")

* Samuel Thibault:

> This is following the BSD and Linux definition.
> ---
>  inet/netinet/in.h | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/inet/netinet/in.h b/inet/netinet/in.h
> index 1633bc64e4..362eb9e9e7 100644
> --- a/inet/netinet/in.h
> +++ b/inet/netinet/in.h
> @@ -278,6 +278,19 @@ struct ip_mreq
>      struct in_addr imr_interface;
>    };
>  
> +/* IPv4 multicast request with interface index.  */
> +struct ip_mreqn
> +  {
> +    /* IP multicast address of group.  */
> +    struct in_addr imr_multiaddr;
> +
> +    /* Local IP address of interface.  */
> +    struct in_addr imr_address;
> +
> +    /* Interface index.  */
> +    int imr_ifindex;
> +  };
> +
>  struct ip_mreq_source
>    {
>      /* IP multicast address of group.  */

I think you'll have to remove the definition from
sysdeps/unix/sysv/linux/bits/in.h.

python3 -B ../scripts/gen-as-const.py --cc="gcc -m32 -std=gnu11 -fgnu89-inline  -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-common -Wstrict-prototypes -Wold-style-definition -fmath-errno      -ftls-model=initial-exec      -I../include -I/build/csu  -I/build  -I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/x86/nptl  -I../sysdeps/i386/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/i386  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -I../sysdeps/i386/i686  -I../sysdeps/i386/fpu  -I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86/include -I../sysdeps/x86  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/float128  -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I.  -D_LIBC_REENTRANT -include /build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h       -DTOP_NAMESPACE=glibc -DGEN_AS_CONST_HEADERS \
		   -MD -MP -MF /build/rtld-sizes.h.dT \
		   -MT '/build/rtld-sizes.h.d /build/rtld-sizes.h'" \
	  rtld-sizes.sym > /build/rtld-sizes.hT
In file included from ../include/netinet/in.h:3,
                 from ../resolv/bits/types/res_state.h:5,
                 from ../include/bits/types/res_state.h:1,
                 from ../nptl/descr.h:34,
                 from ../sysdeps/i386/nptl/tls.h:114,
                 from ../sysdeps/i386/i686/nptl/tls.h:32,
                 from ../include/link.h:51,
                 from <stdin>:1:
../inet/netinet/in.h:282:8: error: redefinition of ‘struct ip_mreqn’
  282 | struct ip_mreqn
      |        ^~~~~~~~
In file included from ../inet/netinet/in.h:37:
../sysdeps/unix/sysv/linux/bits/in.h:150:8: note: originally defined here
  150 | struct ip_mreqn
      |        ^~~~~~~~

<https://www.delorie.com/trybots/32bit/11483/make.tail.txt>

Thanks,
Florian


  reply	other threads:[~2022-08-15 13:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-13 21:03 Samuel Thibault
2022-08-15 13:13 ` Florian Weimer [this message]
2022-08-15 17:15   ` Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmh1k5ta.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=commit-hurd@gnu.org \
    --cc=libc-alpha@sourceware.org \
    --cc=samuel.thibault@ens-lyon.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).