[Bug 264635] Including headers from multicast(4) causes compilation failure: use of undeclared identifier 'NBBY'

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 12 Jun 2022 15:14:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264635

            Bug ID: 264635
           Summary: Including headers from multicast(4) causes compilation
                    failure: use of undeclared identifier 'NBBY'
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

These headers alone fail:
     #include <sys/types.h>
     #include <sys/socket.h>
     #include <netinet/in.h>
     #include <netinet/ip_mroute.h>
     #include <netinet6/ip6_mroute.h>

Failure:
In file included from x.c:6:
/usr/include/netinet6/ip6_mroute.h:92:39: error: use of undeclared identifier
'NBBY'
        if_mask ifs_bits[howmany(IF_SETSIZE, NIFBITS)];
                                             ^
/usr/include/netinet6/ip6_mroute.h:85:36: note: expanded from macro 'NIFBITS'
#define NIFBITS (sizeof(if_mask) * NBBY)        /* bits per mask */
                                   ^
/usr/include/netinet6/ip6_mroute.h:92:39: error: use of undeclared identifier
'NBBY'
/usr/include/netinet6/ip6_mroute.h:85:36: note: expanded from macro 'NIFBITS'
#define NIFBITS (sizeof(if_mask) * NBBY)        /* bits per mask */
                                   ^
2 errors generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.