sflow / host-sflow

host-sflow agent
http://sflow.net
Other
146 stars 55 forks source link

Support for musl #13

Closed Bun closed 7 years ago

Bun commented 7 years ago

Not all Linux distributions use glibc, support for musl (used by e.g. Alpine) would be great.

So far I've had to make the following adjustments to the source to get it to compile:

Since these changes mostly remove functionality, I am not sure what the acceptable solution would be in this case. Maybe simply put some of these features behind #ifdef __GLIBC__? I can submit a trivial patch for this if desired.

sflow commented 7 years ago

Yes, sounds good. Please submit a pull-request or patch with the minimum changes.

Bun commented 7 years ago

FYI, I've been successfully running hsflowd on Alpine 3.4+ for a while now (nflog and pcap) with this patch applied, so consider this resolved.