From 2f7a2c42d2dcc36f8d6b58aff67f6a7d388f81ed Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 16 Dec 2019 13:17:11 -0500 Subject: Include ht.h in all headers that use HT_ENTRY() Without this change, compilation success depends on include order in several tricky ways. --- src/feature/nodelist/microdesc_st.h | 2 ++ src/feature/nodelist/node_st.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src/feature/nodelist') diff --git a/src/feature/nodelist/microdesc_st.h b/src/feature/nodelist/microdesc_st.h index 58b0630573..3828371b90 100644 --- a/src/feature/nodelist/microdesc_st.h +++ b/src/feature/nodelist/microdesc_st.h @@ -17,6 +17,8 @@ struct ed25519_public_key_t; struct nodefamily_t; struct short_policy_t; +#include "ext/ht.h" + /** A microdescriptor is the smallest amount of information needed to build a * circuit through a router. They are generated by the directory authorities, * using information from the uploaded routerinfo documents. They are not diff --git a/src/feature/nodelist/node_st.h b/src/feature/nodelist/node_st.h index 6ad10bb85a..aa4066d99e 100644 --- a/src/feature/nodelist/node_st.h +++ b/src/feature/nodelist/node_st.h @@ -14,6 +14,7 @@ #include "feature/hs/hsdir_index_st.h" #include "lib/crypt_ops/crypto_ed25519.h" +#include "ext/ht.h" /** A node_t represents a Tor router. * -- cgit v1.2.3-54-g00ecf