Fix compilation under kfreebsd _DEFAULT_SOURCE definition should be based on whether we're using GLIBC or not, rather than whether the OS being compiled for is Linux. diff --git a/libserialport_internal.h b/libserialport_internal.h index 57346d6..95bb65d 100644