mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue