Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 2017 16:53:36 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325764 - head/sys/sys
Message-ID:  <201711131653.vADGramm031292@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vangyzen
Date: Mon Nov 13 16:53:36 2017
New Revision: 325764
URL: https://svnweb.freebsd.org/changeset/base/325764

Log:
  Add __BEGIN_DECLS and __END_DECLS to <sys/umtx.h>
  
  This allows C++ programs to call _umtx_op().
  
  MFC after:	3 days
  Sponsored by:	Dell EMC

Modified:
  head/sys/sys/umtx.h

Modified: head/sys/sys/umtx.h
==============================================================================
--- head/sys/sys/umtx.h	Mon Nov 13 12:36:36 2017	(r325763)
+++ head/sys/sys/umtx.h	Mon Nov 13 16:53:36 2017	(r325764)
@@ -122,7 +122,11 @@ 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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711131653.vADGramm031292>