|
From: Paul F. <pa...@so...> - 2021-02-24 10:02:13
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=871f786535aee9a78cfac650a98a37d7a68f4b39 commit 871f786535aee9a78cfac650a98a37d7a68f4b39 Author: Paul Floyd <pj...@wa...> Date: Wed Feb 24 11:01:13 2021 +0100 Hopefully the last small changes for the drd swapcontext test Diff: --- 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 <stdlib.h> #include <string.h> #include <sys/time.h> -#include <sys/timerfd.h> #include <ucontext.h> #include <unistd.h> #include "valgrind.h" |