summaryrefslogtreecommitdiffstats
path: root/tools/getkversion/getkversion.c
blob: abe17054ceda880801df08a07fea6bf08ce0e55e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Get version number of the kernel this was compiled for.
 * This is NOT the same as calling uname(), because we may be
 * running on a different kernel.
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <linux/version.h>
#include <stdio.h>

int
main(void)	/* This is for Dan Popp ;) */
{
	printf("%s\n", UTS_RELEASE);
	return 0;
}