Closed Bun closed 7 years ago
Yes, sounds good. Please submit a pull-request or patch with the minimum changes.
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.
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:
(comparison_fn_t)strcmp
with(int (*)(const void*, const void*))strcmp
in readDiskCountersSince 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.