usbredir cannot be built on FreeBSD because of missing includes. Here is the error message: usbredirserver.c:200:25: error: variable has incomplete type 'struct sockaddr_in6' struct sockaddr_in6 serveraddr; ^ usbredirserver.c:200:12: note: forward declaration of 'struct sockaddr_in6' struct sockaddr_in6 serveraddr; ^ usbredirserver.c:287:30: warning: implicit declaration of function 'htons' is invalid in C99 [-Wimplicit-function-declaration] serveraddr.sin6_port = htons(port); ^ usbredirserver.c:288:30: error: use of undeclared identifier 'in6addr_any' serveraddr.sin6_addr = in6addr_any; ^ 1 warning and 2 errors generated. Patches to fix the problem are available in FreeBSD ports. I think we can remove #ifdef __FreeBSD__ in the patches. https://svnweb.freebsd.org/ports/head/net/usbredir/files/
Thanks for the bug report. I've just pushed a patch to usbredir git master adding the missing includes without the unnecessary #ifdefs.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.