aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vowpal-wabbit/fix-android-build.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/vowpal-wabbit/fix-android-build.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/vowpal-wabbit/fix-android-build.patch')
-rw-r--r--vcpkg/ports/vowpal-wabbit/fix-android-build.patch79
1 files changed, 79 insertions, 0 deletions
diff --git a/vcpkg/ports/vowpal-wabbit/fix-android-build.patch b/vcpkg/ports/vowpal-wabbit/fix-android-build.patch
new file mode 100644
index 0000000..b6d3dd2
--- /dev/null
+++ b/vcpkg/ports/vowpal-wabbit/fix-android-build.patch
@@ -0,0 +1,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>