-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stubs.c: use of undeclared identifier 'PATH_MAX' #46
Comments
Thanks, Frank, the latter option is indeed the right thing to do. In fact the man page for canonicalize_file_name says "The call canonicalize_file_name(path) is equivalent to the call realpath(path, NULL). |
ccadar
added a commit
that referenced
this issue
Oct 20, 2013
Simplified implementation of canonicalize_file_name(). Addresses #46.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
runtime/POSIX/stubs.c uses an undefined
PATH_MAX
on my Linux system:It's afaik neither in the C standards nor included with the default option
-D _GNU_SOURCE
. There are multiple options to resolve this issue. Instead of including linux/limits.h I'd recommend usingPOSIX_C_SOURCE 200809L
/_XOPEN_SOURCE 700
and pruningcanonicalize_file_name
to:Should work for BSD's libc, glibc, musl...
The text was updated successfully, but these errors were encountered: