From 14e46099663783d88cdff60cac97f314d769cf9b Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Sat, 9 Jun 2012 21:46:01 +0000 Subject: [PATCH] - added aligned_u64.patch Changed files: aligned_u64.patch -> 1.1 klibc.spec -> 1.87 --- aligned_u64.patch | 15 +++++++++++++++ klibc.spec | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 aligned_u64.patch diff --git a/aligned_u64.patch b/aligned_u64.patch new file mode 100644 index 0000000..269138a --- /dev/null +++ b/aligned_u64.patch @@ -0,0 +1,15 @@ +* __aligned_u64 definition +* patch from http://www.zytor.com/pipermail/klibc/2011-November/003151.html +--- a/klibc/usr/include/sys/types.h ++++ b/klibc/usr/include/sys/types.h +@@ -100,6 +100,10 @@ typedef uint16_t __sum16; + typedef uint32_t __sum32; + typedef uint64_t __sum64; + ++#define __aligned_u64 __u64 __attribute__((aligned(8))) ++#define __aligned_be64 __be64 __attribute__((aligned(8))) ++#define __aligned_le64 __le64 __attribute__((aligned(8))) ++ + /* + * Some headers seem to require this... + */ diff --git a/klibc.spec b/klibc.spec index 70c3f08..e3995d6 100644 --- a/klibc.spec +++ b/klibc.spec @@ -17,6 +17,7 @@ Group: Libraries Source0: http://www.kernel.org/pub/linux/libs/klibc/Current/%{name}-%{version}.tar.bz2 # Source0-md5: 4df9b0d3d7f9f366c4b5c171cac3c6c3 Patch0: %{name}-klcc.patch +Patch1: aligned_u64.patch URL: http://www.zytor.com/mailman/listinfo/klibc/ # ld.bfd binary BuildRequires: binutils >= 2.20.51.0.6 @@ -126,6 +127,7 @@ Programy zawarte w tym pakiecie zawierają informacje dla debuggera. %prep %setup -q %patch0 -p1 +%patch1 -p2 %build cd usr/include -- 2.43.0