summaryrefslogtreecommitdiff
path: root/recipes/kexec/files/kexec-tools-2-headers.patch
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2009-10-03 00:36:09 +0200
committerAndrea Adami <andrea.adami@gmail.com>2009-10-03 00:39:21 +0200
commit56a4dce3e9057303d1d0c3e2d3a9b2834ba783a1 (patch)
tree2f7f6a099b8ca47ffb4dbc164a563fbbd782b3b5 /recipes/kexec/files/kexec-tools-2-headers.patch
parent37c479af567b53177d5f1cdd20ab87ac9de5a3b2 (diff)
kexec-tools-klibc-static_2.0.1: rework patches. Still won't build. WIP
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 */