Skip to content

Commit

Permalink
Add @com_google_absl//absl/strings:cord (tensorflow#1308)
Browse files Browse the repository at this point in the history
Fix read/STDIN_FILENO

Signed-off-by: Yong Tang <[email protected]>
  • Loading branch information
yongtang authored and i-ony committed Mar 8, 2021
1 parent 538baf7 commit d463a91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow_io/core/kernels/text_kernels.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ limitations under the License.
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/lib/io/buffered_inputstream.h"
#include "tensorflow_io/core/kernels/io_stream.h"

#if defined(_MSC_VER)
#include <io.h>
#define STDIN_FILENO _fileno(stdin)
#else
#include <unistd.h>
#endif

namespace tensorflow {
Expand Down
1 change: 1 addition & 0 deletions tensorflow_io/core/kernels/video_kernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ limitations under the License.
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

static int xioctl(int fh, int request, void* arg) {
int r;
Expand Down
1 change: 1 addition & 0 deletions third_party/toolchains/tf/BUILD.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cc_library(
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:cord",
"@com_google_absl//absl/types:optional",
"@com_google_absl//absl/types:span",
],
Expand Down

0 comments on commit d463a91

Please sign in to comment.