Message ID | 20201104153503.GA3211486@redhat.com |
---|---|
State | New |
Headers | show |
Series | [committed] libstdc++: Fix test failure with --disable-linux-futex | expand |
diff --git a/libstdc++-v3/testsuite/18_support/96817.cc b/libstdc++-v3/testsuite/18_support/96817.cc index f03329678313..4591a7288a57 100644 --- a/libstdc++-v3/testsuite/18_support/96817.cc +++ b/libstdc++-v3/testsuite/18_support/96817.cc @@ -24,6 +24,10 @@ #include <exception> #include <stdlib.h> +#ifndef _GLIBCXX_HAVE_LINUX_FUTEX +# error "This test requries futex support in the library" +#endif + int init() { #if __has_include(<sys/single_threaded.h>)