mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
O_CLOEXEC needs _GNU_SOURCE defined
From man open(2): The O_CLOEXEC, O_DIRECTORY, and O_NOFOLLOW flags are not specified in POSIX.1-2001, but are specified in POSIX.1-2008. Since glibc 2.12, one can obtain their definitions by defining either _POSIX_C_SOURCE with a value greater than or equal to 200809L or _XOPEN_SOURCE with a value greater than or equal to 700. In glibc 2.11 and earlier, one obtains the definitions by defining _GNU_SOURCE. And indeed, with the uClibc C library, O_CLOEXEC is not exposed if _GNU_SOURCE is not defined. Therefore, this commit fixes the build of gstreamer-vaapi with the uClibc C library. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> https://bugzilla.gnome.org/show_bug.cgi?id=779953
This commit is contained in:
parent
7b64cec70f
commit
159e3c3f08
2 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
* @short_description: VA/DRM display abstraction
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include "sysdeps.h"
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include "gst/vaapi/sysdeps.h"
|
||||
#include <gst/video/video.h>
|
||||
#if USE_DRM
|
||||
|
|
Loading…
Reference in a new issue