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

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

View file

@ -1,4 +1,3 @@
#define _GNU_SOURCE
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>