Skip to content

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

Closed
@indygreg

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

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