Skip to content

Include of linux/limits.h breaks build on Linux <5.1 #106881

Closed

Description

@indygreg

Bug report

#101857 / #101858 added an #include <linux/limits.h> on Linux in Modules/posixmodule.c.

If my Linux Git history sleuthing is accurate (git log -- include/linux/limits.h), linux/limits.h only exists in Linux <3.10 and >5.1. (Yes, the file was removed then re-added.) Attempting to compile CPython against Linux headers 3.10-5.0 fails due to the missing file.

cc @thesamesam (commit author) @gpshead (reviewer)

Linked PRs

Activity

  1. changed the title [-]`linux/limits.h` unconditionally included and breaks build on Linux <5.1[/-] [+]Include of `linux/limits.h` breaks build on Linux <5.1[/+] on Jul 19, 2023
  2. added a commit that references this issue on Jul 19, 2023
  3. self-assigned this
    on Jul 19, 2023
  4. gpshead commented on Jul 19, 2023

    @gpshead
    Member

    the joys of headers. I suppose an additional configure.ac check can handle this.

  5. thesamesam commented on Jul 19, 2023

    @thesamesam
    Contributor

    Typical! Happy to look if you don't get a chance.

  6. justdan6 commented on Jul 28, 2023

    @justdan6
    Contributor

    This looked like an easy first issue for me so I hope you don't mind that I grabbed it.

  7. added a commit that references this issue on Jul 28, 2023
  8. added a commit that references this issue on Jul 28, 2023
  9. added 2 commits that reference this issue on Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions