gstreamer: ptp-helper: Use if_nametoindex and setsockopt on Solaris / Illumos too

Patch by Marcel Telka <marcel@telka.sk>.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3552

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6947>
This commit is contained in:
Sebastian Dröge 2024-05-26 12:33:02 +03:00 committed by Backport Bot
parent c36296895f
commit 367d693f22

View file

@ -284,9 +284,7 @@ pub mod unix {
)] )]
pub fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: c_int) -> c_int; pub fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: c_int) -> c_int;
#[cfg(not(any(target_os = "solaris", target_os = "illumos")))]
pub fn if_nametoindex(name: *const c_char) -> c_uint; pub fn if_nametoindex(name: *const c_char) -> c_uint;
#[cfg(not(any(target_os = "solaris", target_os = "illumos")))]
pub fn setsockopt( pub fn setsockopt(
socket: c_int, socket: c_int,
level: c_int, level: c_int,