ofalk / libdnet

libdnet provides a simplified, portable interface to several low-level networking routines.
Other
153 stars 60 forks source link

python: Include config.h for strlcpy definition #60

Closed jer-gentoo closed 4 years ago

jer-gentoo commented 4 years ago

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.

ofalk commented 4 years ago

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