Files
Курнат Андрей 2315f25754 Initial QSfera import
2026-06-07 10:20:04 +03:00

26 lines
488 B
Go

// +build linux
package crypt
/*
#include <features.h>
#ifdef __GLIBC__
#include <gnu/libc-version.h>
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
}