mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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/6925>
This commit is contained in:
parent
354623a246
commit
1c88b06912
1 changed files with 0 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue