library: Change linux version
Added function procps_linux_version() which used to be an exported integer instead. Also changed the method of obtaining the linux version (more correctly the os release) to use a specific procfs entry. This works for both Linux and FreeBSD.
This commit is contained in:
@@ -455,6 +455,7 @@ static const char archdefs[] =
|
||||
|
||||
/*********** spew variables ***********/
|
||||
void self_info(void){
|
||||
int linux_version_code = procps_linux_version();
|
||||
fprintf(stderr,
|
||||
"BSD j %s\n"
|
||||
"BSD l %s\n"
|
||||
|
Reference in New Issue
Block a user