Move POSIX-only include into #ifdef guard, preventing warnings of undefined symbols in some conservative build configurations.

Change-Id: I75ab0a7623c506a826b42406484e8a29f9db9304
Reviewed-on: https://chromium-review.googlesource.com/c/1439198
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Eric Astor <epastor@google.com>
This commit is contained in:
Eric Astor 2019-01-28 10:19:44 -05:00 committed by Commit Bot
parent 1fc95dc3cc
commit f66a125cd5

View File

@ -26,11 +26,12 @@
#include "minidump/minidump_file_writer.h"
#include "tools/tool_support.h"
#include "util/file/file_writer.h"
#include "util/posix/drop_privileges.h"
#include "util/stdlib/string_number_conversion.h"
#if defined(OS_POSIX)
#include <unistd.h>
#include "util/posix/drop_privileges.h"
#endif
#if defined(OS_MACOSX)