liblog: add unistd.h to vndk log/log.h

Too many vendors assume that this is included, and it's not worth the
effort to clean up.

Bug: 165825252
Test: build
Change-Id: I42fb32be7e5e3201dfc5c58734e3ef5b9251faf1
This commit is contained in:
Tom Cherry 2020-10-05 12:19:15 -07:00
parent f99f09eeda
commit 136e4f6da6
1 changed files with 2 additions and 1 deletions

View File

@ -3,8 +3,9 @@
#ifndef _LIBS_LOG_LOG_H
#define _LIBS_LOG_LOG_H
/* Historically vendors have depended on this header being included. */
/* Historically vendors have depended on these headers being included. */
#include <fcntl.h>
#include <unistd.h>
#include <android/log.h>
#include <log/log_id.h>