aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-29 10:37:35 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-29 12:21:52 -0400
commite0957022bd108696a941bdb284420fc55cbcf187 (patch)
treeeda94f0c14fe023002c24a19386dabb2ef2de8c4 /src/or
parent207fc4cffe21b58b7f0447706a903e5f66b8bcd8 (diff)
downloadtor-e0957022bd108696a941bdb284420fc55cbcf187.tar.gz
tor-e0957022bd108696a941bdb284420fc55cbcf187.zip
Extract get_uname to lib/osinfo.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/config.c1
-rw-r--r--src/or/main.c1
-rw-r--r--src/or/router.c3
3 files changed, 4 insertions, 1 deletions
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);
}
-