[Bug 747692] check build error on osx: pipelines/tcp.c:161:34: error: use of undeclared identifier 'SOCK_CLOEXEC'

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Apr 17 00:37:43 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=747692

--- Comment #3 from Julien Isorce <julien.isorce at gmail.com> ---
It seems SOCK_CLOEXEC is not available on G_OS_WIN32.
I simplified a bit https://git.gnome.org/browse/glib/tree/gio/gsocket.c#n454
which also handles the case where SOCK_CLOEXEC is defined in libc header but
not available in the kernel: "/* It's possible that libc has SOCK_CLOEXEC but
the kernel does not */".
I skipped this as this is a unit test but I can re-add.

Note that I should have put: #if !defined(SOCK_CLOEXEC) && !defined(G_OS_WIN32)
instead of just #ifndef G_OS_WIN32 maybe this is your question.

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


More information about the gstreamer-bugs mailing list