aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/stdint_local.h
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-08-25 11:01:05 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-08-25 11:03:34 +0000
commitbcf7b52774f1b0a3e405a207c3c4a5342b951f40 (patch)
tree2c3e2c1c4995fac9cb83d61e8dc755b19833aef5 /main/xen/stdint_local.h
parente794f0ffd98383718cfeae36bbee7d473846890b (diff)
downloadaports-bcf7b52774f1b0a3e405a207c3c4a5342b951f40.tar.bz2
aports-bcf7b52774f1b0a3e405a207c3c4a5342b951f40.tar.xz
main/xen: fix hvmloader
hvmloader is 32 bit but pulled in 64bit stdint from musl headers. we solve this by providing our own stdint_local.h elf.h pulls in stdint.h too so we ship our own elf_local.h too ref #3308
Diffstat (limited to 'main/xen/stdint_local.h')
-rw-r--r--main/xen/stdint_local.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/main/xen/stdint_local.h b/main/xen/stdint_local.h
new file mode 100644
index 0000000000..2c2fa6dd83
--- /dev/null
+++ b/main/xen/stdint_local.h
@@ -0,0 +1,23 @@
+/* 32 bit int types */
+#ifndef STDINT_LOCAL_H
+#define STDINT_LOCAL_H
+typedef signed char int8_t;
+typedef short int int16_t;
+typedef int int32_t;
+# if defined(__x86_64__)
+typedef long int int64_t;
+#else
+typedef long long int int64_t;
+#endif
+
+/* Unsigned. */
+typedef unsigned char uint8_t;
+typedef unsigned short int uint16_t;
+typedef unsigned int uint32_t;
+# if defined(__x86_64__)
+typedef unsigned long int uint64_t;
+#else
+typedef unsigned long long int uint64_t;
+#endif
+
+#endif