diff options
Diffstat (limited to 'meta/recipes-bsp/setserial')
-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 0000000000..6a9ebb71b5 --- /dev/null +++ b/meta/recipes-bsp/setserial/setserial/add_stdlib.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | # This patch addes stdlib.h to fix compiler warnings due to the exit | ||
2 | # built-in not being defined and getting an incorrect implicit definition | ||
3 | |||
4 | Created-by: Saul Wold <saul.wold@intel.com> | ||
5 | |||
6 | --- setserial-2.17/setserial.c 2010-09-02 14:11:27.569763088 -0700 | ||
7 | +++ setserial-2.17_fixed/setserial.c 2010-09-02 14:11:08.546264139 -0700 | ||
8 | @@ -11,6 +11,7 @@ | ||
9 | */ | ||
10 | |||
11 | #include <stdio.h> | ||
12 | +#include <stdlib.h> | ||
13 | #include <fcntl.h> | ||
14 | #include <termios.h> | ||
15 | #include <string.h> | ||
16 | |||
diff --git a/meta/recipes-bsp/setserial/setserial_2.17.bb b/meta/recipes-bsp/setserial/setserial_2.17.bb index 4e0d1b66e4..29fc59beb6 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" | |||
3 | AUTHOR = "Theodore Ts'o <tytso@mit.edu>" | 3 | AUTHOR = "Theodore Ts'o <tytso@mit.edu>" |
4 | SECTION = "console/utils" | 4 | SECTION = "console/utils" |
5 | LICENSE = "GPL" | 5 | LICENSE = "GPL" |
6 | PR = "r2" | 6 | PR = "r3" |
7 | 7 | ||
8 | inherit autotools | 8 | inherit autotools |
9 | 9 | ||
10 | SRC_URI = "${SOURCEFORGE_MIRROR}/setserial/${PN}-${PV}.tar.gz" | 10 | SRC_URI = "${SOURCEFORGE_MIRROR}/setserial/${PN}-${PV}.tar.gz \ |
11 | file://add_stdlib.patch \ | ||
12 | " | ||
11 | 13 | ||
12 | do_install() { | 14 | do_install() { |
13 | install -d ${D}${bindir} | 15 | install -d ${D}${bindir} |