summaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-23 19:37:32 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-23 19:37:32 -0400
commitd50f90bfc4457b499d5bf56b674289f70f1004bd (patch)
tree8fce1ba86b3008dad0b639620e6ebdfc784766dc /src/test/test.c
parent2ae92ab973019cd88c5b610462a6be99a2ac4c6f (diff)
parent6e0872e8672ed18f8c250cdcbdfd3d7bf047c076 (diff)
downloadtor-d50f90bfc4457b499d5bf56b674289f70f1004bd.tar.gz
tor-d50f90bfc4457b499d5bf56b674289f70f1004bd.zip
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/test/test.c b/src/test/test.c
index 745aa987aa..f96a0b33ed 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -26,6 +26,8 @@
#include <dirent.h>
#endif /* defined(_WIN32) */
+#include <math.h>
+
/* These macros pull in declarations for some functions and structures that
* are typically file-private. */
#define ROUTER_PRIVATE
@@ -34,14 +36,6 @@
#define MAIN_PRIVATE
#define STATEFILE_PRIVATE
-/*
- * Linux doesn't provide lround in math.h by default, but mac os does...
- * It's best just to leave math.h out of the picture entirely.
- */
-//#include <math.h>
-long int lround(double x);
-double fabs(double x);
-
#include "core/or/or.h"
#include "lib/err/backtrace.h"
#include "lib/container/buffers.h"