[all-commits] [llvm/llvm-project] a72683: [libc][hdr] Add poll and socket overlay headers fo...

lntue via All-commits all-commits at lists.llvm.org
Fri Oct 2 21:14:08 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a72683f5a2bf63c8ee6dfb3c510f298589db08fe
      https://github.com/llvm/llvm-project/commit/a72683f5a2bf63c8ee6dfb3c510f298589db08fe
  Author: lntue <lntue at google.com>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    M libc/hdr/CMakeLists.txt
    M libc/hdr/poll_macros.h
    A libc/hdr/poll_overlay.h
    M libc/hdr/sys_socket_macros.h
    A libc/hdr/sys_socket_overlay.h
    M libc/hdr/types/CMakeLists.txt
    M libc/hdr/types/nfds_t.h
    M libc/hdr/types/sa_family_t.h
    M libc/hdr/types/socklen_t.h
    M libc/hdr/types/struct_cmsghdr.h
    M libc/hdr/types/struct_linger.h
    M libc/hdr/types/struct_mmsghdr.h
    M libc/hdr/types/struct_msghdr.h
    M libc/hdr/types/struct_pollfd.h
    M libc/hdr/types/struct_sockaddr.h
    M libc/hdr/types/struct_sockaddr_storage.h
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc][hdr] Add poll and socket overlay headers for GCC overlay builds. (#227961)

When building LLVM libc in overlay mode with gcc/g++, alias and macro
redirections in GNU libc headers (such as ppoll and socket functions)
cause conflict with libc header declarations.

Fixes in this PR:
- Add `poll_overlay.h` and `sys_socket_overlay.h` to wrap system headers
before libc macros and type declarations in overlay mode.
- Update proxy headers in `libc/hdr/` and `libc/hdr/types/`.
- Update CMake and Bazel build files accordingly.

Assisted-by: Gemini



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