Skip to content

common BUGFIX define PATH_MAX if not available#2404

Merged
michalvasko merged 1 commit into
CESNET:develfrom
pinotree:path_max
Jun 6, 2025
Merged

common BUGFIX define PATH_MAX if not available#2404
michalvasko merged 1 commit into
CESNET:develfrom
pinotree:path_max

Conversation

@pinotree
Copy link
Copy Markdown
Contributor

@pinotree pinotree commented Jun 3, 2025

PATH_MAX is optional in POSIX, and thus may not be provided (e.g. on GNU/Hurd). Provide a fallback definition for it, so the existing code keeps working for now; include <limits.h> to ensure that PATH_MAX is available if provided on the current OS/libc.

Copy link
Copy Markdown
Member

@michalvasko michalvasko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, thanks.

Copy link
Copy Markdown
Member

@michalvasko michalvasko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncrustify requires includes to be sorted alphabetically, that is why the tests failed.

PATH_MAX is optional in POSIX, and thus may not be provided (e.g. on
GNU/Hurd). Provide a fallback definition for it, so the existing code
keeps working for now; include <limits.h> to ensure that PATH_MAX is
available if provided on the current OS/libc.
@pinotree
Copy link
Copy Markdown
Contributor Author

pinotree commented Jun 3, 2025

uncrustify requires includes to be sorted alphabetically, that is why the tests failed.

No problem - fixed :)

@michalvasko michalvasko merged commit a8458ba into CESNET:devel Jun 6, 2025
11 checks passed
@pinotree pinotree deleted the path_max branch June 6, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants