You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this is the same IPPORT_RESERVED that's defined in both /usr/include/netinet/in.h and /usr/include/netdb.h. Then the issue is that it is defined twice in Rust as C enums and simple macro definitions are both translated as C constants.
A workaround for this is to add the enum item to the "blocklist":
bindgen --blocklist-item=IPPORT_RESERVED
In that way you should only get a single definition of IPPORT_RESERVED.
The following lib:
https://github.com/Haivision/srt
https://github.com/Haivision/srt/blob/v1.5.4/srtcore/srt.h
in version 1.5.4 , and bindgen 0.71.1
Generates
I'm very new to Rust and don't know what else to add.
The text was updated successfully, but these errors were encountered: