From 6d14ac3efec9604c4ea9291c0b8d4f5225c00d93 Mon Sep 17 00:00:00 2001 From: Liang Zou Date: Sat, 20 Feb 2021 14:33:01 +0800 Subject: [PATCH] Fix the symlink creation bug if using bazel --- bazel/glog.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bazel/glog.bzl b/bazel/glog.bzl index a46e2d1..495ea63 100644 --- a/bazel/glog.bzl +++ b/bazel/glog.bzl @@ -56,6 +56,8 @@ def glog_library(namespace = "google", with_gflags = 1, **kwargs): linux_or_darwin_copts = wasm_copts + [ # For src/utilities.cc. "-DHAVE_SYS_SYSCALL_H", + # For src/logging.cc to create symlinks. + "-DHAVE_UNISTD_H", ] freebsd_only_copts = [