[all-commits] [llvm/llvm-project] 4d25f4: [libc++] Adjust how we guard the inclusion of unis...

john-brawn-arm via All-commits all-commits at lists.llvm.org
Thu May 14 03:58:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d25f4453d60dee522e905c844dde0f4b6ed9475
      https://github.com/llvm/llvm-project/commit/4d25f4453d60dee522e905c844dde0f4b6ed9475
  Author: John Brawn <john.brawn at arm.com>
  Date:   2020-05-14 (Thu, 14 May 2020)

  Changed paths:
    M libcxx/src/chrono.cpp
    M libcxx/src/filesystem/operations.cpp
    M libcxx/src/thread.cpp

  Log Message:
  -----------
  [libc++] Adjust how we guard the inclusion of unistd.h

unistd.h isn't guaranteed to exist when the target isn't Windows, in
particular if the target is bare-metal (i.e. no operating system).
Handle this by using __has_include instead, though in
filesystem/operations.cpp we already unconditionally include it so
just remove the extra include.

Differential Revision: https://reviews.llvm.org/D79784




More information about the All-commits mailing list