mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -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 +1 @@
|
||||||
Subproject commit a8fb217ebac920a8fd545dc182b3f292e4599002
|
Subproject commit 5de91e837e0d395dfdb4559bded4946e3663b6cb
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 5680e29716f3d621fa25b26bfd60234778ec02b9
|
Subproject commit 491a7679f884f30a845e05b279abbd9ef66ae328
|
||||||
|
|
@ -22,8 +22,6 @@
|
||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ bluez5_sources = ['plugin.c',
|
||||||
bluez5lib = shared_library('spa-bluez5',
|
bluez5lib = shared_library('spa-bluez5',
|
||||||
bluez5_sources,
|
bluez5_sources,
|
||||||
include_directories : [ spa_inc ],
|
include_directories : [ spa_inc ],
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
dependencies : [ dbus_dep, sbc_dep, bluez_dep ],
|
dependencies : [ dbus_dep, sbc_dep, bluez_dep ],
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : '@0@/spa/bluez5'.format(get_option('libdir')))
|
install_dir : '@0@/spa/bluez5'.format(get_option('libdir')))
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@
|
||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ spa_support_sources = ['cpu.c',
|
||||||
|
|
||||||
spa_support_lib = shared_library('spa-support',
|
spa_support_lib = shared_library('spa-support',
|
||||||
spa_support_sources,
|
spa_support_sources,
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
include_directories : [ spa_inc],
|
include_directories : [ spa_inc],
|
||||||
dependencies : threads_dep,
|
dependencies : threads_dep,
|
||||||
install : true,
|
install : true,
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ executable('test-perf', 'test-perf.c',
|
||||||
install : false)
|
install : false)
|
||||||
executable('stress-ringbuffer', 'stress-ringbuffer.c',
|
executable('stress-ringbuffer', 'stress-ringbuffer.c',
|
||||||
include_directories : [spa_inc ],
|
include_directories : [spa_inc ],
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
dependencies : [dl_lib, pthread_lib],
|
dependencies : [dl_lib, pthread_lib],
|
||||||
install : false)
|
install : false)
|
||||||
if sdl_dep.found()
|
if sdl_dep.found()
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#define _GNU_SOURCE
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,32 @@
|
||||||
executable('video-src',
|
executable('video-src',
|
||||||
'video-src.c',
|
'video-src.c',
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
install: false,
|
install: false,
|
||||||
dependencies : [pipewire_dep, mathlib],
|
dependencies : [pipewire_dep, mathlib],
|
||||||
)
|
)
|
||||||
executable('audio-src',
|
executable('audio-src',
|
||||||
'audio-src.c',
|
'audio-src.c',
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
install: false,
|
install: false,
|
||||||
dependencies : [pipewire_dep, mathlib],
|
dependencies : [pipewire_dep, mathlib],
|
||||||
)
|
)
|
||||||
executable('export-source',
|
executable('export-source',
|
||||||
'export-source.c',
|
'export-source.c',
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
install: false,
|
install: false,
|
||||||
dependencies : [pipewire_dep, mathlib],
|
dependencies : [pipewire_dep, mathlib],
|
||||||
)
|
)
|
||||||
|
|
||||||
executable('export-spa',
|
executable('export-spa',
|
||||||
'export-spa.c',
|
'export-spa.c',
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
install: false,
|
install: false,
|
||||||
dependencies : [pipewire_dep, mathlib],
|
dependencies : [pipewire_dep, mathlib],
|
||||||
)
|
)
|
||||||
|
|
||||||
executable('media-session',
|
executable('media-session',
|
||||||
'media-session.c',
|
'media-session.c',
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
install: false,
|
install: false,
|
||||||
dependencies : [pipewire_dep, mathlib],
|
dependencies : [pipewire_dep, mathlib],
|
||||||
)
|
)
|
||||||
|
|
@ -29,16 +34,19 @@ executable('media-session',
|
||||||
if sdl_dep.found()
|
if sdl_dep.found()
|
||||||
executable('video-play',
|
executable('video-play',
|
||||||
'video-play.c',
|
'video-play.c',
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
install: false,
|
install: false,
|
||||||
dependencies : [pipewire_dep, sdl_dep],
|
dependencies : [pipewire_dep, sdl_dep],
|
||||||
)
|
)
|
||||||
executable('local-v4l2',
|
executable('local-v4l2',
|
||||||
'local-v4l2.c',
|
'local-v4l2.c',
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
install: false,
|
install: false,
|
||||||
dependencies : [pipewire_dep, sdl_dep],
|
dependencies : [pipewire_dep, sdl_dep],
|
||||||
)
|
)
|
||||||
executable('export-sink',
|
executable('export-sink',
|
||||||
'export-sink.c',
|
'export-sink.c',
|
||||||
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
install: false,
|
install: false,
|
||||||
dependencies : [pipewire_dep, sdl_dep, mathlib],
|
dependencies : [pipewire_dep, sdl_dep, mathlib],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@
|
||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ pipewire_gst_headers = [
|
||||||
|
|
||||||
pipewire_gst_c_args = [
|
pipewire_gst_c_args = [
|
||||||
'-DHAVE_CONFIG_H',
|
'-DHAVE_CONFIG_H',
|
||||||
|
'-D_GNU_SOURCE',
|
||||||
]
|
]
|
||||||
|
|
||||||
pipewire_gst = shared_library('gstpipewire',
|
pipewire_gst = shared_library('gstpipewire',
|
||||||
|
|
|
||||||
|
|
@ -89,10 +89,6 @@ struct impl {
|
||||||
|
|
||||||
#include <dbus/dbus.h>
|
#include <dbus/dbus.h>
|
||||||
|
|
||||||
#ifndef _GNU_SOURCE
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,11 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
#ifndef __USE_GNU
|
#ifndef __USE_GNU
|
||||||
#define __USE_GNU
|
#define __USE_GNU
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,6 @@
|
||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _GNU_SOURCE
|
|
||||||
#define _GNU_SOURCE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
executable('pipewire-monitor',
|
executable('pipewire-monitor',
|
||||||
'pipewire-monitor.c',
|
'pipewire-monitor.c',
|
||||||
install: true,
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
dependencies : [pipewire_dep],
|
install: true,
|
||||||
|
dependencies : [pipewire_dep],
|
||||||
)
|
)
|
||||||
executable('pipewire-cli',
|
executable('pipewire-cli',
|
||||||
'pipewire-cli.c',
|
'pipewire-cli.c',
|
||||||
install: true,
|
c_args : [ '-D_GNU_SOURCE' ],
|
||||||
dependencies : [pipewire_dep],
|
install: true,
|
||||||
|
dependencies : [pipewire_dep],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@
|
||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _GNU_SOURCE /* See feature_test_macros(7) */
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue