summaryrefslogtreecommitdiff
path: root/recipes/kexec/files/kexec-tools-2-headers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/kexec/files/kexec-tools-2-headers.patch')
-rw-r--r--recipes/kexec/files/kexec-tools-2-headers.patch19
1 files changed, 17 insertions, 2 deletions
diff --git a/recipes/kexec/files/kexec-tools-2-headers.patch b/recipes/kexec/files/kexec-tools-2-headers.patch
index e28b8a19b4..091e12d9a8 100644
--- a/recipes/kexec/files/kexec-tools-2-headers.patch
+++ b/recipes/kexec/files/kexec-tools-2-headers.patch
@@ -65,11 +65,11 @@ Index: kexec-tools-2.0.1/purgatory/arch/arm/include/stdint.h
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ kexec-tools-2.0.1/purgatory/arch/arm/include/stdint.h 2006-02-06 18:28:37.031096672 +0100
-@@ -0,0 +1,16 @@
+@@ -0,0 +1,31 @@
+#ifndef STDINT_H
+#define STDINT_H
+
-+typedef unsigned long size_t;
++/* +typedef unsigned long size_t; */
+
+typedef unsigned char uint8_t;
+typedef unsigned short uint16_t;
@@ -81,4 +81,19 @@ Index: kexec-tools-2.0.1/purgatory/arch/arm/include/stdint.h
+typedef signed int int32_t;
+typedef signed long long int64_t;
+
++/* Types for `void *' pointers. */
++#if __WORDSIZE == 64
++# ifndef __intptr_t_defined
++typedef long int intptr_t;
++# define __intptr_t_defined
++# endif
++typedef unsigned long int uintptr_t;
++#else
++# ifndef __intptr_t_defined
++typedef int intptr_t;
++# define __intptr_t_defined
++# endif
++typedef unsigned int uintptr_t;
++#endif
++
+#endif /* STDINT_H */