add _GNU_SOURCE as compiler flag

This commit is contained in:
Wim Taymans 2019-01-08 17:35:36 +01:00
parent 57e0a94163
commit 1ed27a8f2b
16 changed files with 24 additions and 24 deletions

View file

@ -22,8 +22,6 @@
* DEALINGS IN THE SOFTWARE.
*/
#define _GNU_SOURCE
#include <errno.h>
#include <stddef.h>
#include <unistd.h>

View file

@ -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')))

View file

@ -22,8 +22,6 @@
* DEALINGS IN THE SOFTWARE.
*/
#define _GNU_SOURCE
#include <stddef.h>
#include <unistd.h>
#include <string.h>

View file

@ -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,