Skip to content

Commit

Permalink
Remove unnecessary inclusion of sys/syscall.h in base/logging.cc
Browse files Browse the repository at this point in the history
The inclusion of sys/syscall.h was introduced in crrev.com/4916 to
obtain the current thread ID via `syscall(__NR_gettid)`. The code was
later changed in crrev.com/118152 to use
`base::PlatformThread::CurrentId()` instead. The inclusion of
sys/syscall.h is no longer needed and thus removed by this CL.

BUG=None

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

Cr-Commit-Position: refs/heads/master@{#381735}
  • Loading branch information
cbchan authored and Commit bot committed Mar 17, 2016
1 parent 8ba3b68 commit 3bf198b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions base/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ typedef HANDLE MutexHandle;
#elif defined(OS_POSIX)
#if defined(OS_NACL)
#include <sys/time.h> // timespec doesn't seem to be in <time.h>
#else
#include <sys/syscall.h>
#endif
#include <time.h>
#endif
Expand Down

0 comments on commit 3bf198b

Please sign in to comment.