Ticket #1322: os_getversion_glibc.diff
File os_getversion_glibc.diff, 676 bytes (added by , 12 years ago) |
---|
-
build/premake/premake4/src/host/os_getversion.c
196 196 return; 197 197 } 198 198 199 #if ! defined(PLATFORM_LINUX)199 #if !__GLIBC__ 200 200 info->description = u.sysname; 201 201 #else 202 202 // On Linux info->sysname gets set, but it isn't passed out of this function 203 info->description = "Linux"; 203 // info->description = "Linux"; 204 info->description = malloc(strlen(u.sysname)+1); 205 strcpy(info->description, u.sysname); 204 206 #endif 205 207 206 208 if ((ver = strtok(u.release, ".-")) != NULL)