Ticket #1322: os_getversion_glibc.diff

File os_getversion_glibc.diff, 676 bytes (added by leper, 12 years ago)
  • build/premake/premake4/src/host/os_getversion.c

     
    196196        return;
    197197    }
    198198
    199 #if !defined(PLATFORM_LINUX)
     199#if !__GLIBC__
    200200    info->description = u.sysname;
    201201#else
    202202    // 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);
    204206#endif
    205207
    206208    if ((ver = strtok(u.release, ".-")) != NULL)