refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>` #35658

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:260704-systypes changing 2 files +0 −2
  1. hebasto commented at 4:26 PM on July 4, 2026: member

    Pure getifaddrs()/freeifaddrs() calls do not need any type definitions beyond those provided by <ifaddrs.h> itself.

    The subsequent struct ifaddrs processing in netif.cpp does not involve any symbols from <sys/types.h>.

    Platform-specific manual pages for reviewers' convenience:

    Related to #34995.

  2. refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>`
    Pure `getifaddrs()`/`freeifaddrs()` calls do not need any type
    definitions beyond those provided by `<ifaddrs.h>` itself.
    
    The subsequent `struct ifaddrs` processing in `netif.cpp` does not
    involve any symbols from `<sys/types.h>`.
    22c328d388
  3. DrahtBot added the label Refactoring on Jul 4, 2026
  4. DrahtBot commented at 4:26 PM on July 4, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35658.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK maflcko, sedited

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #34995 (iwyu: Fix warnings in src/common and treat them as errors by hebasto)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. maflcko commented at 9:52 AM on July 6, 2026: member

    lgtm ACK 22c328d388a677bea7cc4feb179e154c7ca2f416

  6. in cmake/module/TestAppendRequiredLibraries.cmake:18 in 22c328d388
      14 | @@ -15,7 +15,6 @@ function(test_append_socket_library target)
      15 |    endif()
      16 |  
      17 |    set(check_socket_source "
      18 | -    #include <sys/types.h>
    


    vicjuma commented at 11:23 AM on July 6, 2026:

    ACK. Probably a historical convention on OpenBSD, though it appears to be currently unnecessary as seen in FreeBSD.

  7. sedited approved
  8. sedited commented at 11:53 AM on July 6, 2026: contributor

    ACK 22c328d388a677bea7cc4feb179e154c7ca2f416

  9. sedited merged this on Jul 6, 2026
  10. sedited closed this on Jul 6, 2026

  11. hebasto deleted the branch on Jul 6, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-07-09 06:47 UTC