Initial QSfera import
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
// +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
|
||||
}
|
||||
Reference in New Issue
Block a user