From e0957022bd108696a941bdb284420fc55cbcf187 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 29 Jun 2018 10:37:35 -0400 Subject: Extract get_uname to lib/osinfo. --- src/or/config.c | 1 + src/or/main.c | 1 + src/or/router.c | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/or') diff --git a/src/or/config.c b/src/or/config.c index b98f124a83..458b6bae2a 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -112,6 +112,7 @@ #endif #include "lib/meminfo/meminfo.h" +#include "lib/osinfo/uname.h" #include "lib/process/daemon.h" #include "lib/process/pidfile.h" #include "lib/process/restrict.h" diff --git a/src/or/main.c b/src/or/main.c index 53be1b1035..81a8cfbee9 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -112,6 +112,7 @@ #include "or/ext_orport.h" #include "lib/memarea/memarea.h" #include "lib/meminfo/meminfo.h" +#include "lib/osinfo/uname.h" #include "lib/sandbox/sandbox.h" #include "lib/fs/lockfile.h" #include "lib/net/buffers_net.h" diff --git a/src/or/router.c b/src/or/router.c index f13788d66f..c7fed1f021 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -50,6 +50,8 @@ #include "or/port_cfg_st.h" #include "or/routerinfo_st.h" +#include "lib/osinfo/uname.h" + /** * \file router.c * \brief Miscellaneous relay functionality, including RSA key maintenance, @@ -3824,4 +3826,3 @@ router_get_all_orports(const routerinfo_t *ri) fake_node.ri = (routerinfo_t *)ri; return node_get_all_orports(&fake_node); } - -- cgit v1.2.3-54-g00ecf