[all-commits] [llvm/llvm-project] 34d244: Fix rtsan build with musl (#119674)

Yi Kong via All-commits all-commits at lists.llvm.org
Thu Dec 12 05:58:03 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34d244a94195dbeb626573c9b2e388dc574f9300
      https://github.com/llvm/llvm-project/commit/34d244a94195dbeb626573c9b2e388dc574f9300
  Author: Yi Kong <yikong at google.com>
  Date:   2024-12-12 (Thu, 12 Dec 2024)

  Changed paths:
    M compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp

  Log Message:
  -----------
  Fix rtsan build with musl (#119674)

fd_set is defined by `sys/select.h`. On musl, this header is not
transitively included by the other headers.

Failure message:
```
compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp:761:37: error: unknown type name 'fd_set'; did you mean 'fd_t'?
  761 | INTERCEPTOR(int, pselect, int nfds, fd_set *readfds, fd_set *writefds,
      |                                     ^~~~~~
      |                                     fd_t
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list