summaryrefslogtreecommitdiff
path: root/tests/gem_fence_thrash.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-01-06 15:45:29 -0800
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-01-08 21:49:03 +0100
commit504c4fa94f109338ef90a7e07b21bfafa67b8d4e (patch)
treeb7d918728793d8d70802bb363069eeda31aaef3f /tests/gem_fence_thrash.c
parent4e3c85f153276fc297570364b71ddbdd37aeaf5a (diff)
Fix pthread compiler flags to work on Solaris and with Studio compiler
AC_USE_SYSTEM_EXTENSIONS is used to let autoconf take care of setting the right system defintions for POSIX threads & similar extensions to the base POSIX API. Since it will also #define _GNU_SOURCE 1, remove the extra setting to avoid compiler warnings about redefined macros. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_fence_thrash.c')
-rw-r--r--tests/gem_fence_thrash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_fence_thrash.c b/tests/gem_fence_thrash.c
index 24147dee..7b679369 100644
--- a/tests/gem_fence_thrash.c
+++ b/tests/gem_fence_thrash.c
@@ -26,7 +26,7 @@
*
*/
-#define _GNU_SOURCE
+#include "config.h"
#include <unistd.h>
#include <stdlib.h>