diff options
author | Saul Wold <Saul.Wold@intel.com> | 2010-09-02 14:17:27 -0700 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-09-02 15:19:34 -0700 |
commit | c840412b694bb09d5c33ca445beb7aef79dfdc0d (patch) | |
tree | 49d0b50e7c8420798794803e87e2b81eb8156e20 /meta/recipes-bsp | |
parent | 3be379dea3d037d4d69f41fd51c3d5e7a4e24a13 (diff) | |
download | openembedded-core-c840412b694bb09d5c33ca445beb7aef79dfdc0d.tar.gz openembedded-core-c840412b694bb09d5c33ca445beb7aef79dfdc0d.tar.bz2 openembedded-core-c840412b694bb09d5c33ca445beb7aef79dfdc0d.tar.xz openembedded-core-c840412b694bb09d5c33ca445beb7aef79dfdc0d.zip |
setserial: add patch to fix missing stdlib header
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/setserial/setserial/add_stdlib.patch | 16 | ||||
-rw-r--r-- | meta/recipes-bsp/setserial/setserial_2.17.bb | 6 |
2 files changed, 20 insertions, 2 deletions
diff --git a/meta/recipes-bsp/setserial/setserial/add_stdlib.patch b/meta/recipes-bsp/setserial/setserial/add_stdlib.patch new file mode 100644 index 000000000..6a9ebb71b --- /dev/null +++ b/meta/recipes-bsp/setserial/setserial/add_stdlib.patch @@ -0,0 +1,16 @@ +# This patch addes stdlib.h to fix compiler warnings due to the exit +# built-in not being defined and getting an incorrect implicit definition + +Created-by: Saul Wold <saul.wold@intel.com> + +--- setserial-2.17/setserial.c 2010-09-02 14:11:27.569763088 -0700 ++++ setserial-2.17_fixed/setserial.c 2010-09-02 14:11:08.546264139 -0700 +@@ -11,6 +11,7 @@ + */ + + #include <stdio.h> ++#include <stdlib.h> + #include <fcntl.h> + #include <termios.h> + #include <string.h> + diff --git a/meta/recipes-bsp/setserial/setserial_2.17.bb b/meta/recipes-bsp/setserial/setserial_2.17.bb index 4e0d1b66e..29fc59beb 100644 --- a/meta/recipes-bsp/setserial/setserial_2.17.bb +++ b/meta/recipes-bsp/setserial/setserial_2.17.bb @@ -3,11 +3,13 @@ HOMEPAGE = "http://setserial.sourceforge.net" AUTHOR = "Theodore Ts'o <tytso@mit.edu>" SECTION = "console/utils" LICENSE = "GPL" -PR = "r2" +PR = "r3" inherit autotools -SRC_URI = "${SOURCEFORGE_MIRROR}/setserial/${PN}-${PV}.tar.gz" +SRC_URI = "${SOURCEFORGE_MIRROR}/setserial/${PN}-${PV}.tar.gz \ + file://add_stdlib.patch \ + " do_install() { install -d ${D}${bindir} |