Skip to content

Commit f6cead0

Browse files
authored
Add @com_google_absl//absl/strings:cord (#1308)
Fix read/STDIN_FILENO Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
1 parent bf8585a commit f6cead0

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

tensorflow_io/core/kernels/text_kernels.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ limitations under the License.
1616
#include "tensorflow/core/framework/op_kernel.h"
1717
#include "tensorflow/core/lib/io/buffered_inputstream.h"
1818
#include "tensorflow_io/core/kernels/io_stream.h"
19-
2019
#if defined(_MSC_VER)
2120
#include <io.h>
2221
#define STDIN_FILENO _fileno(stdin)
22+
#else
23+
#include <unistd.h>
2324
#endif
2425

2526
namespace tensorflow {

tensorflow_io/core/kernels/video_kernels.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ limitations under the License.
2323
#include <sys/ioctl.h>
2424
#include <sys/stat.h>
2525
#include <sys/types.h>
26+
#include <unistd.h>
2627

2728
static int xioctl(int fh, int request, void* arg) {
2829
int r;

third_party/toolchains/tf/BUILD.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cc_library(
88
"@com_google_absl//absl/container:flat_hash_map",
99
"@com_google_absl//absl/container:inlined_vector",
1010
"@com_google_absl//absl/strings",
11+
"@com_google_absl//absl/strings:cord",
1112
"@com_google_absl//absl/types:optional",
1213
"@com_google_absl//absl/types:span",
1314
],

0 commit comments

Comments
 (0)