Hi there,
Not only glibc and newlib provide mempcpy, so the build fails e.g. on recent FreeBSD due to a duplicate function mempcpy. To fix this, I've written a patch that adds a configure test to check for mempcpy, only using your own implementation if it is not available.
Unfortunately your code has a custom config.h header which shadows the config.h header generated by autotools. In my patch, I have simply removed the other header and defined the single macro in it elsewhere. Check if that's the solution you want.
Hi there,
Not only glibc and newlib provide
mempcpy, so the build fails e.g. on recent FreeBSD due to a duplicate functionmempcpy. To fix this, I've written a patch that adds a configure test to check formempcpy, only using your own implementation if it is not available.Unfortunately your code has a custom
config.hheader which shadows theconfig.hheader generated by autotools. In my patch, I have simply removed the other header and defined the single macro in it elsewhere. Check if that's the solution you want.