static char sccsid[] = "@(#)69 1.2 src/avs/fs/tools/getupdatelevel.c, mmfs, avs_rgpfs24, rgpfs240610b 2/27/06 02:45:28"; #include #include #include main() { #if defined(SUSE_LINUX) && LINUX_KERNEL_VERSION >= 2060507 \ && (CONFIG_SUSE_KERNEL == 1) && defined(CONFIG_RELEASE) && defined(KERNEL_VERSION) int level, fix_level; int kernel_level = KERNEL_VERSION(2,6,5); if ( kernel_level == LINUX_VERSION_CODE || level >= 7 ) { sscanf(CONFIG_RELEASE,"%d.%d",&level,&fix_level); if (level == 7 && fix_level >= 97) { printf("-DSUSE_LINUX_UPDATE_SUBLEVEL=%d00000000\n",fix_level); } } #endif }