mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
setserial: add patch to fix missing stdlib header
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
@@ -3,11 +3,13 @@ HOMEPAGE = "http://setserial.sourceforge.net"
|
|||||||
AUTHOR = "Theodore Ts'o <tytso@mit.edu>"
|
AUTHOR = "Theodore Ts'o <tytso@mit.edu>"
|
||||||
SECTION = "console/utils"
|
SECTION = "console/utils"
|
||||||
LICENSE = "GPL"
|
LICENSE = "GPL"
|
||||||
PR = "r2"
|
PR = "r3"
|
||||||
|
|
||||||
inherit autotools
|
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() {
|
do_install() {
|
||||||
install -d ${D}${bindir}
|
install -d ${D}${bindir}
|
||||||
|
|||||||
Reference in New Issue
Block a user