summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am3
-rw-r--r--include/linux_version.h14
2 files changed, 16 insertions, 1 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index e45ce3982..275661dee 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,4 +1,5 @@
include $(top_srcdir)/config/include-Makefile.am
dist_noinst_HEADERS = carefulputc.h env.h linux_reboot.h md5.h \
- nls.h pathnames.h setproctitle.h widechar.h xstrncpy.h
+ nls.h pathnames.h setproctitle.h widechar.h xstrncpy.h \
+ linux_version.h
diff --git a/include/linux_version.h b/include/linux_version.h
new file mode 100644
index 000000000..a6a1e99c7
--- /dev/null
+++ b/include/linux_version.h
@@ -0,0 +1,14 @@
+#ifndef LINUX_VERSION_H
+#define LINUX_VERSION_H
+
+#ifdef HAVE_LINUX_VERSION_H
+# include <linux/version.h>
+#endif
+
+#ifndef KERNEL_VERSION
+# define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+#endif
+
+int get_linux_version(void);
+
+#endif /* LINUX_VERSION_H */