Skip to content

Commit 4e0dea6

Browse files
committed
stress-ovpn: add build time check for HAVE_ATOMIC_STORE_N
__atomic_store_n is being used, so add build time check for this required atomic operation. Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
1 parent 6785a5d commit 4e0dea6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stress-ovpn.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ static const stress_opt_t opts[] = {
5050
*/
5151
#if defined(HAVE_LIB_NL) && \
5252
defined(HAVE_LINUX_OVPN_UAPI) && \
53+
defined(HAVE_ATOMIC_STORE_N) && \
5354
!defined(BUILD_STATIC)
5455

5556
#include <time.h>
@@ -3696,7 +3697,7 @@ const stressor_info_t stress_ovpn_info = {
36963697
.verify = VERIFY_NONE,
36973698
.opts = opts,
36983699
.help = help,
3699-
.unimplemented_reason = "built without libnl3, without a linux/ovpn.h providing the ovpn netlink uapi, or built statically"
3700+
.unimplemented_reason = "built without libnl3, without a linux/ovpn.h providing the ovpn netlink uapi, wthout atomic_store_n, or built statically"
37003701
};
37013702

37023703
#endif /* HAVE_LIB_NL && HAVE_LINUX_OVPN_UAPI */

0 commit comments

Comments
 (0)