From: Paul Floyd Date: Wed, 24 Feb 2021 10:01:13 +0000 (+0100) Subject: Hopefully the last small changes for the drd swapcontext test X-Git-Tag: VALGRIND_3_17_0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=871f786535aee9a78cfac650a98a37d7a68f4b39;p=thirdparty%2Fvalgrind.git Hopefully the last small changes for the drd swapcontext test --- diff --git a/drd/tests/Makefile.am b/drd/tests/Makefile.am index a489c8b46d..79e076246b 100644 --- a/drd/tests/Makefile.am +++ b/drd/tests/Makefile.am @@ -590,3 +590,8 @@ endif sem_wait_SOURCES = sem_wait.cpp swapcontext_SOURCES = swapcontext.c +swapcontext_CFLAGS = $(AM_CFLAGS) -g +if VGCONF_OS_IS_SOLARIS +swapcontext_CFLAGS += -D__EXTENSIONS__ +endif + diff --git a/drd/tests/swapcontext.c b/drd/tests/swapcontext.c index 6257b6d930..cfe0577a3d 100644 --- a/drd/tests/swapcontext.c +++ b/drd/tests/swapcontext.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include "valgrind.h"