Created attachment 439972 [details, diff]
Include sys/types.h and fix compile phase
As per title, the package fails to build with musl.
The reason being the package using (caddr_t), which is not pulled in from musl's headers (as it is with glibc's ones I would guess).
Dropping the attached patch in patches/ and making the ebuild apply it is enough to solve the issue.
Note that musl seems to provide this as a compatibility layer and declares caddr_t as "char *" (sys/types.h).
Please note that there is an open issue upstream, but the project seems dead:
Also see the answer on stackoverflow referenced in the issue above for completeness (see comments in the accepted answers):
Pull request submitted:
Author: Felix Janda <firstname.lastname@example.org>
Date: Sat Nov 19 15:54:32 2016 -0500
net-proxy/macchanger: add patch for compilation with musl
The patch is used by Alpine Linux, and has been submitted upstream:
Also, do a revbump, bump EAPI, and eprefixify.
(cherry picked from commit d139a40e069d59ca895871fe47bf45d6b82ba171)