Skip to content

Commit

Permalink
include what you use: errno.h and string.h in base/
Browse files Browse the repository at this point in the history
Adding some missing errno.h includes for errno and
string.h for strerror in base/

Review URL: https://codereview.chromium.org/1434533004

Cr-Commit-Position: refs/heads/master@{#358477}
  • Loading branch information
mostynb authored and Commit bot committed Nov 7, 2015
1 parent 8f81220 commit 522dfa5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions base/memory/shared_memory_mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "base/memory/shared_memory.h"

#include <errno.h>
#include <fcntl.h>
#include <mach/mach_vm.h>
#include <sys/mman.h>
Expand Down
1 change: 1 addition & 0 deletions base/memory/shared_memory_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "base/memory/shared_memory.h"

#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
Expand Down
1 change: 1 addition & 0 deletions base/process/kill_mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "base/process/kill.h"

#include <errno.h>
#include <signal.h>
#include <sys/event.h>
#include <sys/types.h>
Expand Down
1 change: 1 addition & 0 deletions base/process/kill_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "base/process/kill.h"

#include <errno.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
Expand Down
1 change: 1 addition & 0 deletions base/process/process_iterator_freebsd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "base/process/process_iterator.h"

#include <errno.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions base/process/process_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "base/process/process.h"

#include <errno.h>
#include <sys/resource.h>
#include <sys/wait.h>

Expand Down
3 changes: 3 additions & 0 deletions base/strings/safe_sprintf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

#include "base/strings/safe_sprintf.h"

#include <errno.h>
#include <string.h>

#include <limits>

#if !defined(NDEBUG)
Expand Down

0 comments on commit 522dfa5

Please sign in to comment.