svn commit: r368336 - head/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Fri Dec 4 15:50:45 UTC 2020


Author: hselasky
Date: Fri Dec  4 15:50:44 2020
New Revision: 368336
URL: https://svnweb.freebsd.org/changeset/base/368336

Log:
  Allow the rbtree header file in the LinuxKPI to be used in standalone code.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies // NVIDIA Networking

Modified:
  head/sys/compat/linuxkpi/common/include/linux/rbtree.h

Modified: head/sys/compat/linuxkpi/common/include/linux/rbtree.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/rbtree.h	Fri Dec  4 15:46:48 2020	(r368335)
+++ head/sys/compat/linuxkpi/common/include/linux/rbtree.h	Fri Dec  4 15:50:44 2020	(r368336)
@@ -31,7 +31,10 @@
 #ifndef	_LINUX_RBTREE_H_
 #define	_LINUX_RBTREE_H_
 
+#ifndef _STANDALONE
 #include <sys/stddef.h>
+#endif
+
 #include <sys/tree.h>
 
 struct rb_node {


More information about the svn-src-head mailing list