1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
diff --git a/utl/flatbuffer/txt_to_flat.cc b/utl/flatbuffer/txt_to_flat.cc
index d63141e..784d329 100644
--- a/utl/flatbuffer/txt_to_flat.cc
+++ b/utl/flatbuffer/txt_to_flat.cc
@@ -18,8 +18,6 @@
#include "vw/core/parse_regressor.h"
#include "vw_to_flat.h"
-#include <sys/timeb.h>
-
#include <fstream>
using namespace VW::config;
diff --git a/utl/flatbuffer/vw_to_flat.cc b/utl/flatbuffer/vw_to_flat.cc
index b56b5b7..8ae9978 100644
--- a/utl/flatbuffer/vw_to_flat.cc
+++ b/utl/flatbuffer/vw_to_flat.cc
@@ -13,8 +13,6 @@
#include "vw/core/reductions/cb/cb_algs.h"
#include "vw/core/shared_data.h"
-#include <sys/timeb.h>
-
#include <fstream>
#include <vector>
diff --git a/vowpalwabbit/allreduce/src/allreduce_sockets.cc b/vowpalwabbit/allreduce/src/allreduce_sockets.cc
index a61e560..27d6446 100644
--- a/vowpalwabbit/allreduce/src/allreduce_sockets.cc
+++ b/vowpalwabbit/allreduce/src/allreduce_sockets.cc
@@ -32,8 +32,6 @@ Alekh Agarwal and John Langford, with help Olivier Chapelle.
#include "vw/common/vw_exception.h"
#include "vw/io/logger.h"
-#include <sys/timeb.h>
-
// port is already in network order
socket_t VW::all_reduce_sockets::sock_connect(const uint32_t ip, const int port, VW::io::logger& logger)
{
diff --git a/vowpalwabbit/core/src/confidence_sequence.cc b/vowpalwabbit/core/src/confidence_sequence.cc
index fc4b35d..0c2a40c 100644
--- a/vowpalwabbit/core/src/confidence_sequence.cc
+++ b/vowpalwabbit/core/src/confidence_sequence.cc
@@ -204,7 +204,7 @@ double confidence_sequence::approxpolygammaone(double b) const
double confidence_sequence::lblogwealth(double sumXt, double v, double eta, double s, double lb_alpha) const
{
-#if !defined(__APPLE__) && !defined(_WIN32) && !defined(__EMSCRIPTEN__)
+#if !defined(__APPLE__) && !defined(_WIN32) && !defined(__EMSCRIPTEN__) && !defined(__ANDROID__)
double zeta_s = std::riemann_zeta(s);
#else
double zeta_s = 10.584448464950803; // std::riemann_zeta(s) -- Assuming s=1.1 is constant
diff --git a/vowpalwabbit/core/src/parser.cc b/vowpalwabbit/core/src/parser.cc
index 26b0ccd..ff249fb 100644
--- a/vowpalwabbit/core/src/parser.cc
+++ b/vowpalwabbit/core/src/parser.cc
@@ -53,9 +53,6 @@ int VW_GETPID() { return (int)::GetCurrentProcessId(); }
#else
# include <netdb.h>
# define VW_GETPID getpid
-#endif
-
-#if defined(__FreeBSD__) || defined(__APPLE__)
# include <netinet/in.h>
#endif
diff --git a/vowpalwabbit/core/src/reductions/bfgs.cc b/vowpalwabbit/core/src/reductions/bfgs.cc
index 8b1e7ac..7728ea0 100644
--- a/vowpalwabbit/core/src/reductions/bfgs.cc
+++ b/vowpalwabbit/core/src/reductions/bfgs.cc
@@ -20,8 +20,6 @@ Implementation by Miro Dudik.
#include "vw/core/shared_data.h"
#include "vw/core/simple_label.h"
-#include <sys/timeb.h>
-
#include <cassert>
#include <cfloat>
#include <chrono>
|