mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
add _GNU_SOURCE as compiler flag
This commit is contained in:
parent
57e0a94163
commit
1ed27a8f2b
16 changed files with 24 additions and 24 deletions
|
|
@ -1,27 +1,32 @@
|
|||
executable('video-src',
|
||||
'video-src.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
dependencies : [pipewire_dep, mathlib],
|
||||
)
|
||||
executable('audio-src',
|
||||
'audio-src.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
dependencies : [pipewire_dep, mathlib],
|
||||
)
|
||||
executable('export-source',
|
||||
'export-source.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
dependencies : [pipewire_dep, mathlib],
|
||||
)
|
||||
|
||||
executable('export-spa',
|
||||
'export-spa.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
dependencies : [pipewire_dep, mathlib],
|
||||
)
|
||||
|
||||
executable('media-session',
|
||||
'media-session.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
dependencies : [pipewire_dep, mathlib],
|
||||
)
|
||||
|
|
@ -29,16 +34,19 @@ executable('media-session',
|
|||
if sdl_dep.found()
|
||||
executable('video-play',
|
||||
'video-play.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
dependencies : [pipewire_dep, sdl_dep],
|
||||
)
|
||||
executable('local-v4l2',
|
||||
'local-v4l2.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
dependencies : [pipewire_dep, sdl_dep],
|
||||
)
|
||||
executable('export-sink',
|
||||
'export-sink.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
dependencies : [pipewire_dep, sdl_dep, mathlib],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ pipewire_gst_headers = [
|
|||
|
||||
pipewire_gst_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
'-D_GNU_SOURCE',
|
||||
]
|
||||
|
||||
pipewire_gst = shared_library('gstpipewire',
|
||||
|
|
|
|||
|
|
@ -89,10 +89,6 @@ struct impl {
|
|||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -29,9 +29,11 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#ifndef __USE_GNU
|
||||
#define __USE_GNU
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,6 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
executable('pipewire-monitor',
|
||||
'pipewire-monitor.c',
|
||||
install: true,
|
||||
dependencies : [pipewire_dep],
|
||||
'pipewire-monitor.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: true,
|
||||
dependencies : [pipewire_dep],
|
||||
)
|
||||
executable('pipewire-cli',
|
||||
'pipewire-cli.c',
|
||||
install: true,
|
||||
dependencies : [pipewire_dep],
|
||||
'pipewire-cli.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: true,
|
||||
dependencies : [pipewire_dep],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* See feature_test_macros(7) */
|
||||
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue