svn commit: r325904 - stable/11/sys/sys

Eric van Gyzen vangyzen at FreeBSD.org
Thu Nov 16 21:45:12 UTC 2017


Author: vangyzen
Date: Thu Nov 16 21:45:10 2017
New Revision: 325904
URL: https://svnweb.freebsd.org/changeset/base/325904

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

Modified:
  stable/11/sys/sys/umtx.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/sys/umtx.h
==============================================================================
--- stable/11/sys/sys/umtx.h	Thu Nov 16 21:28:14 2017	(r325903)
+++ stable/11/sys/sys/umtx.h	Thu Nov 16 21:45:10 2017	(r325904)
@@ -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
 


More information about the svn-src-all mailing list