freebsd-ports/devel/bazel029/files/patch-src_tools_singlejar_port.h
Yuri Victorovich d23d35ea8b science/py-tensorflow: Fix build by using the version of devel/bazel (0.29.0) that is known to be able to build it
One of the previous commits to devel/bazel broke tensorflow.

Fun fact: the latest version of tensorflow-2.0.0 also fails to build with the latest version of bazel-1.1.0.
2019-10-31 15:10:46 +00:00

14 lines
362 B
C

--- src/tools/singlejar/port.h.orig 2018-09-18 16:02:23.430634000 +0200
+++ src/tools/singlejar/port.h 2018-09-18 16:03:58.961047000 +0200
@@ -28,6 +28,11 @@
#include <sys/types.h>
#include <time.h>
+#ifndef _OFF64_T_DECLARED
+typedef off_t off64_t;
+#define _OFF64_T_DECLARED
+#endif
+
#if defined(__APPLE__)
typedef off_t off64_t;
#elif defined(_WIN32)