Patchwork linux-x86_2.6.20: fix build

login
register
mail settings
Submitter Artox
Date Aug. 2, 2011, 5:59 p.m.
Message ID <1312307961-985-1-git-send-email-josua.mayer97@googlemail.com>
Download mbox | patch
Permalink /patch/9073/
State New, archived
Headers show

Comments

Artox - Aug. 2, 2011, 5:59 p.m.
From: = <=>

* fix compile error about PATH_MAX not beeing defined
* copied patch from recipes/linux/linux-2.6.20
  git://github.com/openembedded/openembedded as of
    commit 0b521d7bcfbb6f26bb2d3ad55add6a3f677a199d

Signed-off-by: Josua Mayer <josua.mayer97@googlemail.com>
---
 ...ude-limits.h-in-sumversion.c-for-PATH_MAX.patch |   29 ++++++++++++++++++++
 recipes/linux/linux-x86_2.6.20.bb                  |    4 ++-
 2 files changed, 32 insertions(+), 1 deletions(-)
 create mode 100644 recipes/linux/linux-x86-2.6.20/0001-kbuild-include-limits.h-in-sumversion.c-for-PATH_MAX.patch

Patch

diff --git a/recipes/linux/linux-x86-2.6.20/0001-kbuild-include-limits.h-in-sumversion.c-for-PATH_MAX.patch b/recipes/linux/linux-x86-2.6.20/0001-kbuild-include-limits.h-in-sumversion.c-for-PATH_MAX.patch
new file mode 100644
index 0000000..4871601
--- /dev/null
+++ b/recipes/linux/linux-x86-2.6.20/0001-kbuild-include-limits.h-in-sumversion.c-for-PATH_MAX.patch
@@ -0,0 +1,29 @@ 
+From fc31c7716355a226b8ed4e16f4581e5c8fa53570 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Thu, 17 May 2007 14:57:20 -0400
+Subject: [PATCH] kbuild: include limits.h in sumversion.c for PATH_MAX
+
+POSIX says limits.h defines PATH_MAX so we should include it (which fixes
+compiling on some systems like OS X).
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
+---
+ scripts/mod/sumversion.c |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c
+index 6873d5a..d9cc690 100644
+--- a/scripts/mod/sumversion.c
++++ b/scripts/mod/sumversion.c
+@@ -7,6 +7,7 @@
+ #include <ctype.h>
+ #include <errno.h>
+ #include <string.h>
++#include <limits.h>
+ #include "modpost.h"
+ 
+ /*
+-- 
+1.6.3.3
+
diff --git a/recipes/linux/linux-x86_2.6.20.bb b/recipes/linux/linux-x86_2.6.20.bb
index b630780..8d4fc99 100644
--- a/recipes/linux/linux-x86_2.6.20.bb
+++ b/recipes/linux/linux-x86_2.6.20.bb
@@ -3,7 +3,9 @@  SECTION = "kernel"
 LICENSE = "GPLv2"
 PR = "r5"
 
-SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 " 
+SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
+	file://0001-kbuild-include-limits.h-in-sumversion.c-for-PATH_MAX.patch \
+" 
 
 SRC_URI_append_x86 = "file://i486-defconfig"
 SRC_URI_append_i586 = "file://i586-defconfig"