summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/abi-tag.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/abi-tag.h')
-rw-r--r--sysdeps/unix/sysv/linux/abi-tag.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/abi-tag.h b/sysdeps/unix/sysv/linux/abi-tag.h
new file mode 100644
index 0000000000..166e6a12f6
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/abi-tag.h
@@ -0,0 +1,16 @@
+/* Define the GNU ABI tag for the Linux kernel we need.
+ The is a 4-byte quantity in native byte order:
+ the high byte is 0 to indicate Linux;
+ the low three bytes are the LINUX_VERSION_CODE for the earliest
+ compatible Linux kernel. */
+
+#define ABI_LINUX_TAG 0
+
+#define ABI_LINUX_MAJOR 2
+#define ABI_LINUX_MINOR 0
+#define ABI_LINUX_PATCH 0
+
+#define ABI_TAG ((ABI_LINUX_TAG << 24) | \
+ (ABI_LINUX_MAJOR << 16) | \
+ (ABI_LINUX_MINOR << 8) | \
+ (ABI_LINUX_PATCH << 0))