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

python: Include config.h for strlcpy definition #60

Merged
merged 1 commit into from
Sep 30, 2020
Merged

python: Include config.h for strlcpy definition #60

merged 1 commit into from
Sep 30, 2020

Conversation

jer-gentoo
Copy link
Contributor

When no definition of strlcpy is found and the local version is used,
compiling python/dnet.c triggers a warning in the preprocessor:

./dnet.c:3649:3: warning: implicit declaration of function ‘strlcpy’;
did you mean ‘strncpy’? [-Wimplicit-function-declaration]

Fix this by including the generated config.h which does define strlcpy.

When no definition of strlcpy is found and the local version is used,
compiling python/dnet.c triggers a warning in the preprocessor:

./dnet.c:3649:3: warning: implicit declaration of function ‘strlcpy’;
did you mean ‘strncpy’? [-Wimplicit-function-declaration]

Fix this by including the generated config.h which does define strlcpy.
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Sep 26, 2020
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Bug: ofalk/libdnet#60
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
@ofalk ofalk self-assigned this Sep 30, 2020
@ofalk
Copy link
Owner

ofalk commented Sep 30, 2020

Thanks for the PR - it's going to be merged! Thanks a lot for spotting this issue as well!

@ofalk ofalk merged commit c0f339c into ofalk:devel Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants