From 4b86603a2e3d24f53b18915fd8cb302dcf31e4cd Mon Sep 17 00:00:00 2001 From: Brian <bsilver16384@gmail.com> Date: Mon, 15 Aug 2016 01:48:45 -0700 Subject: [PATCH] Remove <linux/unistd.h> include for compatibility with non-glibc On my glibc (Debian Jessie amd64 if anybody cares) system, <linux/unistd.h> is a strict subset of <sys/sycall.h>, which the file is already including. musl libc doesn't provide this file, and with this change all the C++ tests pass with musl libc. This came up in bazelbuild/bazel#1492. --- src/core/lib/support/log_linux.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/lib/support/log_linux.c b/src/core/lib/support/log_linux.c index 508fae4eec..299b377373 100644 --- a/src/core/lib/support/log_linux.c +++ b/src/core/lib/support/log_linux.c @@ -47,7 +47,6 @@ #include <grpc/support/log.h> #include <grpc/support/string_util.h> #include <grpc/support/time.h> -#include <linux/unistd.h> #include <stdarg.h> #include <stdio.h> #include <string.h> -- GitLab