Skip to content
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

mk-configure probably needs a check of PATH_MAX, probably executed always #7

Open
andrewshadura opened this issue Mar 11, 2014 · 2 comments

Comments

@andrewshadura
Copy link
Contributor

checking for compiler type... gcc
checking for function implementation strlcat... yes
checking for function implementation strlcpy... yes
checking for func strlcat... no
checking for func strlcpy... no
checking for program awk... /usr/bin/awk
checking for program cc... /usr/bin/cc
runawk.c:105:22: error: 'PATH_MAX' undeclared here (not in a function)
 static char temp_fn [PATH_MAX] = "/tmp/runawk.XXXXXX";

I suggest to check for PATH_MAX define, if it's not defined, check what getconf says, and if that fails, define some sane default value.

@andrewshadura
Copy link
Contributor Author

ping @cheusov

@cheusov
Copy link
Owner

cheusov commented Jan 8, 2020

I'll implement new feature (see MKC_FEATURES) for this purposes. Thank you for pointing out.

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

No branches or pull requests

2 participants