diff options
| author | Roy Marples <roy@marples.name> | 2019-08-28 13:55:02 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-08-28 13:55:02 +0100 |
| commit | 00c8d0e9848f9e1d3136e48a98aefd97eb90c694 (patch) | |
| tree | 97bd53f03b9b5c1cdad02136e262049170442cf1 /compat | |
| parent | 9d2f1ad1957fb5e53ca6c3740c20305f947d73ec (diff) | |
| download | dhcpcd-00c8d0e9848f9e1d3136e48a98aefd97eb90c694.tar.xz | |
rbtree: Fix building from a DragonFlyBSD import
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/rb.c | 2 | ||||
| -rw-r--r-- | compat/rbtree.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/compat/rb.c b/compat/rb.c index ed643e7b..e5fcaf6d 100644 --- a/compat/rb.c +++ b/compat/rb.c @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include "common.h" +#include "config.h" #if !defined(_KERNEL) && !defined(_STANDALONE) #include <sys/types.h> diff --git a/compat/rbtree.h b/compat/rbtree.h index b0944a98..9d1b629f 100644 --- a/compat/rbtree.h +++ b/compat/rbtree.h @@ -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 |
