[all-commits] [llvm/llvm-project] 037952: [libcxx] Include <sys/time.h> in posix_compat.h

Petr Hosek via All-commits all-commits at lists.llvm.org
Wed Jun 21 09:10:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 037952f6d4a58dd257b27dbd765acb2012f0c11c
      https://github.com/llvm/llvm-project/commit/037952f6d4a58dd257b27dbd765acb2012f0c11c
  Author: Petr Hosek <phosek at google.com>
  Date:   2023-06-21 (Wed, 21 Jun 2023)

  Changed paths:
    M libcxx/src/filesystem/posix_compat.h

  Log Message:
  -----------
  [libcxx] Include <sys/time.h> in posix_compat.h

posix_compat.h uses struct timeval which is defined in <sys/time.h>
but it doesn't include it. On most POSIX platforms like Linux or macOS,
that headers is transitively included by other headers like <sys/stat.h>,
but there are other platforms where this is not the case.

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




More information about the All-commits mailing list