Commit 488d64e3 authored by Yuta Hijikata's avatar Yuta Hijikata Committed by Commit Bot

Fixes import file name from error.h to errno.h

Patch crrev.com/c/2326511 incorrectly imports <error.h> instead of
<errno.h> to access char* program_invocation_short_name.

It should be <errno.h> that is imported.
https://linux.die.net/man/3/program_invocation_short_name

BUG=chromium:1110865
TEST=run `ps aux` on a chromebook

Change-Id: I24f687cab02eaa34efe87d4d209cbb437021d9f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2352250Reviewed-by: default avatarScott Violet <sky@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Yuta Hijikata <ythjkt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797512}
parent 08cb8efc
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Define _GNU_SOURCE to ensure that <error.h> defines // Define _GNU_SOURCE to ensure that <errno.h> defines
// program_invocation_short_name. Keep this at the top of the file since some // program_invocation_short_name. Keep this at the top of the file since some
// system headers might include <error.h> and the header could be skipped on // system headers might include <errno.h> and the header could be skipped on
// subsequent includes. // subsequent includes.
#if defined(OS_LINUX) && !defined(_GNU_SOURCE) #if defined(OS_LINUX) && !defined(_GNU_SOURCE)
#define _GNU_SOURCE #define _GNU_SOURCE
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#endif // defined(OS_POSIX) && !defined(OS_MAC) && !defined(OS_SOLARIS) #endif // defined(OS_POSIX) && !defined(OS_MAC) && !defined(OS_SOLARIS)
#if defined(OS_LINUX) #if defined(OS_LINUX)
#include <error.h> // Get program_invocation_short_name declaration. #include <errno.h> // Get program_invocation_short_name declaration.
#include <sys/prctl.h> #include <sys/prctl.h>
#include "base/files/file_path.h" #include "base/files/file_path.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment