rbtree: Fix building from a DragonFlyBSD import

This commit is contained in:
Roy Marples 2019-08-28 13:55:02 +01:00
parent f61961f5cb
commit 5f106a2237
3 changed files with 7 additions and 3 deletions

View File

@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include "common.h"
#include "config.h"
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <sys/types.h>

View File

@ -32,7 +32,7 @@
#ifndef _SYS_RBTREE_H_
#define _SYS_RBTREE_H_
#include "common.h"
#include "config.h"
#if defined(_KERNEL) || defined(_STANDALONE)
#include <sys/types.h>
@ -40,7 +40,11 @@
#include <stdbool.h>
#include <inttypes.h>
#endif
#ifdef HAVE_SYS_QUEUE_H
#include <sys/queue.h>
#else
#include "queue.h"
#endif
#if !defined(__linux__) && !defined(__QNX__) && !defined(__sun)
#include <sys/endian.h>
#else

2
configure vendored
View File

@ -1038,7 +1038,7 @@ EOF
rm -f _rbtree.c _rbtree
fi
if [ "$RBTREE" = no ]; then
echo "CPPFLAGS+= -DRBTEST" >>$CONFIG_MK
echo "#define RBTEST" >>$CONFIG_H
echo "COMPAT_SRCS+= compat/rb.c" >>$CONFIG_MK
echo "#include \"compat/rbtree.h\"" >>$CONFIG_H
else