From d63f2964cef2d43964bc4bf9b2de6df11af1e260 Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Mon, 13 Nov 2017 16:53:36 +0000 Subject: [PATCH] Add __BEGIN_DECLS and __END_DECLS to This allows C++ programs to call _umtx_op(). MFC after: 3 days Sponsored by: Dell EMC --- sys/sys/umtx.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/umtx.h b/sys/sys/umtx.h index d2ff5acd0b7..dfd6be54000 100644 --- a/sys/sys/umtx.h +++ b/sys/sys/umtx.h @@ -122,8 +122,12 @@ struct umtx_robust_lists_params { #ifndef _KERNEL +__BEGIN_DECLS + int _umtx_op(void *obj, int op, u_long val, void *uaddr, void *uaddr2); +__END_DECLS + #else /*