When trying to build on alpine linux with musl libc i get:
netinfo.c: In function 'mc_net_info_get_permanent_mac':
netinfo.c:116:28: error: 'caddr_t' undeclared (first use in this function)
req.ifr_data = (caddr_t)epa;
^
I know the project is probably dead. However, I want to clarify that musl defines caddr_t in <sys/types.h>. So to fix it this header file has to be included to fix build with the musl C library.
When trying to build on alpine linux with musl libc i get:
This fixes it:
for details see: http://stackoverflow.com/questions/6381526/what-is-the-significance-of-caddr-t-and-when-is-it-used