mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
v4l2allocator: O_CLOEXEC needs _GNU_SOURCE
Similar to 94f3d6fc
/ bz 709423
On some systems (E.G. uClibc and older Glibc versions), O_CLOEXEC is only
defined when _GNU_SOURCE is specified, so do so.
https://bugzilla.gnome.org/show_bug.cgi?id=736670
This commit is contained in:
parent
711e1407a1
commit
d3eea8f606
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
# define _GNU_SOURCE /* O_CLOEXEC */
|
||||
#endif
|
||||
|
||||
#include "ext/videodev2.h"
|
||||
#include "gstv4l2allocator.h"
|
||||
#include "v4l2_calls.h"
|
||||
|
|
Loading…
Reference in a new issue