diff options
| -rw-r--r-- | meta-networking/recipes-daemons/tftp-hpa/files/0001-tftp-Remove-double-inclusion-of-signal.h.patch | 39 | ||||
| -rw-r--r-- | meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/tftp-hpa/files/0001-tftp-Remove-double-inclusion-of-signal.h.patch b/meta-networking/recipes-daemons/tftp-hpa/files/0001-tftp-Remove-double-inclusion-of-signal.h.patch new file mode 100644 index 0000000000..84658d667b --- /dev/null +++ b/meta-networking/recipes-daemons/tftp-hpa/files/0001-tftp-Remove-double-inclusion-of-signal.h.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From e9ed48d91642d384ce07cbb9bec788f07fc6354c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 6 Sep 2022 14:51:42 -0700 | ||
| 4 | Subject: [PATCH] tftp: Remove double inclusion of signal.h | ||
| 5 | |||
| 6 | Undefine __USE_XOPEN2K8 so we can get bsd_signal definition from system | ||
| 7 | headers | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | config.h | 4 +++- | ||
| 13 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/config.h b/config.h | ||
| 16 | index 3ff2915..ae1a14b 100644 | ||
| 17 | --- a/config.h | ||
| 18 | +++ b/config.h | ||
| 19 | @@ -93,7 +93,6 @@ | ||
| 20 | #endif | ||
| 21 | |||
| 22 | #include <errno.h> | ||
| 23 | -#include <signal.h> | ||
| 24 | |||
| 25 | #ifdef HAVE_SYS_SOCKET_H | ||
| 26 | #include <sys/socket.h> | ||
| 27 | @@ -296,6 +295,9 @@ char *xstrdup(const char *); | ||
| 28 | |||
| 29 | #ifndef HAVE_BSD_SIGNAL | ||
| 30 | void (*bsd_signal(int, void (*)(int))) (int); | ||
| 31 | +#else | ||
| 32 | +#undef __USE_XOPEN2K8 | ||
| 33 | +#include <signal.h> | ||
| 34 | #endif | ||
| 35 | #ifndef HAVE_DUP2 | ||
| 36 | int dup2(int, int); | ||
| 37 | -- | ||
| 38 | 2.37.3 | ||
| 39 | |||
diff --git a/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb b/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb index af42bda93c..565f493ce2 100644 --- a/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb +++ b/meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb | |||
| @@ -29,6 +29,7 @@ SRC_URI = "http://kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-${PV}.t | |||
| 29 | file://fix-writing-emtpy-file.patch \ | 29 | file://fix-writing-emtpy-file.patch \ |
| 30 | file://0001-__progname-is-provided-by-libc.patch \ | 30 | file://0001-__progname-is-provided-by-libc.patch \ |
| 31 | file://0001-tftp-Mark-toplevel-definition-as-external.patch \ | 31 | file://0001-tftp-Mark-toplevel-definition-as-external.patch \ |
| 32 | file://0001-tftp-Remove-double-inclusion-of-signal.h.patch \ | ||
| 32 | file://tftpd-hpa.socket \ | 33 | file://tftpd-hpa.socket \ |
| 33 | file://tftpd-hpa.service \ | 34 | file://tftpd-hpa.service \ |
| 34 | " | 35 | " |
