diff options
Diffstat (limited to 'meta/recipes-bsp/setserial')
-rw-r--r-- | meta/recipes-bsp/setserial/setserial/0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch | 41 | ||||
-rw-r--r-- | meta/recipes-bsp/setserial/setserial_2.17.bb | 7 |
2 files changed, 44 insertions, 4 deletions
diff --git a/meta/recipes-bsp/setserial/setserial/0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch b/meta/recipes-bsp/setserial/setserial/0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch new file mode 100644 index 0000000000..10c6ae881b --- /dev/null +++ b/meta/recipes-bsp/setserial/setserial/0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 9bbb342f5d9ad5dc75486fd35ada8e287ba19299 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 15 Aug 2022 13:03:17 -0700 | ||
4 | Subject: [PATCH] setserial.c: Add needed system headers for ioctl() and | ||
5 | close() calls | ||
6 | |||
7 | Add int return type for main() function | ||
8 | |||
9 | Fixes | ||
10 | error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] | ||
11 | error: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declarat | ||
12 | ion] | ||
13 | |||
14 | Upstream-Status: Submitted [https://sourceforge.net/p/setserial/discussion/7060/thread/95d874c12c/] | ||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | --- | ||
17 | setserial.c | 4 +++- | ||
18 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/setserial.c b/setserial.c | ||
21 | index bfda8fd..6a95513 100644 | ||
22 | --- a/setserial.c | ||
23 | +++ b/setserial.c | ||
24 | @@ -16,6 +16,8 @@ | ||
25 | #include <termios.h> | ||
26 | #include <string.h> | ||
27 | #include <errno.h> | ||
28 | +#include <unistd.h> | ||
29 | +#include <sys/ioctl.h> | ||
30 | |||
31 | #ifdef HAVE_ASM_IOCTLS_H | ||
32 | #include <asm/ioctls.h> | ||
33 | @@ -715,7 +717,7 @@ fprintf(stderr, "\t* port\t\tset the I/O port\n"); | ||
34 | exit(1); | ||
35 | } | ||
36 | |||
37 | -main(int argc, char **argv) | ||
38 | +int main(int argc, char **argv) | ||
39 | { | ||
40 | int get_flag = 0, wild_intr_flag = 0; | ||
41 | int c; | ||
diff --git a/meta/recipes-bsp/setserial/setserial_2.17.bb b/meta/recipes-bsp/setserial/setserial_2.17.bb index 8dbddd7dc5..98ab45145f 100644 --- a/meta/recipes-bsp/setserial/setserial_2.17.bb +++ b/meta/recipes-bsp/setserial/setserial_2.17.bb | |||
@@ -1,12 +1,10 @@ | |||
1 | SUMMARY = "Controls the configuration of serial ports" | 1 | SUMMARY = "Controls the configuration of serial ports" |
2 | DESCRIPTION = "setserial is a program designed to set and/or report the configuration information associated with a serial port" | 2 | DESCRIPTION = "setserial is a program designed to set and/or report the configuration information associated with a serial port" |
3 | HOMEPAGE = "http://setserial.sourceforge.net" | 3 | HOMEPAGE = "http://setserial.sourceforge.net" |
4 | AUTHOR = "Theodore Ts'o <tytso@mit.edu>" | ||
5 | SECTION = "console/utils" | 4 | SECTION = "console/utils" |
6 | 5 | ||
7 | LICENSE = "GPLv2.0" | 6 | LICENSE = "GPL-2.0-only" |
8 | LIC_FILES_CHKSUM = "file://version.h;beginline=1;endline=6;md5=2e7c59cb9e57e356ae81f50f4e4dfd99" | 7 | LIC_FILES_CHKSUM = "file://version.h;beginline=1;endline=6;md5=2e7c59cb9e57e356ae81f50f4e4dfd99" |
9 | PR = "r3" | ||
10 | 8 | ||
11 | DEPENDS += "groff-native" | 9 | DEPENDS += "groff-native" |
12 | 10 | ||
@@ -15,7 +13,8 @@ inherit autotools-brokensep | |||
15 | SRC_URI = "${SOURCEFORGE_MIRROR}/setserial/${BPN}-${PV}.tar.gz \ | 13 | SRC_URI = "${SOURCEFORGE_MIRROR}/setserial/${BPN}-${PV}.tar.gz \ |
16 | file://add_stdlib.patch \ | 14 | file://add_stdlib.patch \ |
17 | file://ldflags.patch \ | 15 | file://ldflags.patch \ |
18 | " | 16 | file://0001-setserial.c-Add-needed-system-headers-for-ioctl-and-.patch \ |
17 | " | ||
19 | 18 | ||
20 | SRC_URI[md5sum] = "c4867d72c41564318e0107745eb7a0f2" | 19 | SRC_URI[md5sum] = "c4867d72c41564318e0107745eb7a0f2" |
21 | SRC_URI[sha256sum] = "7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a" | 20 | SRC_URI[sha256sum] = "7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a" |