From 871f786535aee9a78cfac650a98a37d7a68f4b39 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Wed, 24 Feb 2021 11:01:13 +0100 Subject: [PATCH] Hopefully the last small changes for the drd swapcontext test --- drd/tests/Makefile.am | 5 +++++ drd/tests/swapcontext.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) 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" -- 2.47.2