// +build linux package crypt /* #include #ifdef __GLIBC__ #include unsigned int get_glibc_minor_version(void) { return __GLIBC_MINOR__; } #else unsigned int get_glibc_minor_version(void) { return 0; } #endif */ import "C" // This function is specific to the tests. It basically checks if // we're running with glibc and if the used glibc is new enough func checkGlibCVersion() bool { c_minor := C.get_glibc_minor_version() return c_minor >= 17 }