mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-01 10:40:30 -05:00
26 lines
488 B
Go
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
|
|
}
|