mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04: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 +1 @@
|
|||
Subproject commit a8fb217ebac920a8fd545dc182b3f292e4599002
|
||||
Subproject commit 5de91e837e0d395dfdb4559bded4946e3663b6cb
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 5680e29716f3d621fa25b26bfd60234778ec02b9
|
||||
Subproject commit 491a7679f884f30a845e05b279abbd9ef66ae328
|
||||
|
|
@ -22,8 +22,6 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <errno.h>
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ bluez5_sources = ['plugin.c',
|
|||
bluez5lib = shared_library('spa-bluez5',
|
||||
bluez5_sources,
|
||||
include_directories : [ spa_inc ],
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
dependencies : [ dbus_dep, sbc_dep, bluez_dep ],
|
||||
install : true,
|
||||
install_dir : '@0@/spa/bluez5'.format(get_option('libdir')))
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ spa_support_sources = ['cpu.c',
|
|||
|
||||
spa_support_lib = shared_library('spa-support',
|
||||
spa_support_sources,
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
include_directories : [ spa_inc],
|
||||
dependencies : threads_dep,
|
||||
install : true,
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ executable('test-perf', 'test-perf.c',
|
|||
install : false)
|
||||
executable('stress-ringbuffer', 'stress-ringbuffer.c',
|
||||
include_directories : [spa_inc ],
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
dependencies : [dl_lib, pthread_lib],
|
||||
install : false)
|
||||
if sdl_dep.found()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
|
|
@ -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