[oe] [meta-networking][PATCH 4/4] netkit-tftp: Fix build with musl

akuster808 akuster808 at gmail.com
Thu Aug 31 21:50:39 UTC 2017



On 08/30/2017 07:04 PM, Khem Raj wrote:
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>   .../0001-tftp-Include-missing-fcntl.h.patch        | 25 ++++++++++++++++++++++
>   .../recipes-netkit/netkit-tftp/netkit-tftp_0.17.bb |  7 +++---
>   2 files changed, 29 insertions(+), 3 deletions(-)
>   create mode 100644 meta-networking/recipes-netkit/netkit-tftp/netkit-tftp/0001-tftp-Include-missing-fcntl.h.patch
>
> diff --git a/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp/0001-tftp-Include-missing-fcntl.h.patch b/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp/0001-tftp-Include-missing-fcntl.h.patch
> new file mode 100644
> index 000000000..c5dcdb423
> --- /dev/null
> +++ b/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp/0001-tftp-Include-missing-fcntl.h.patch
> @@ -0,0 +1,25 @@
> +From fa57e161fc953264a75d50a787cb83983e60acc7 Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem at gmail.com>
> +Date: Wed, 30 Aug 2017 18:30:02 -0700
> +Subject: [PATCH] tftp: Include missing fcntl.h
Did I miss the "Upstream-Status" ?
- armin
> +
> +Signed-off-by: Khem Raj <raj.khem at gmail.com>
> +---
> + tftp/main.c | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/tftp/main.c b/tftp/main.c
> +index 8c54843..5c9b698 100644
> +--- a/tftp/main.c
> ++++ b/tftp/main.c
> +@@ -63,6 +63,7 @@ char main_rcsid[] =
> + #include <ctype.h>
> + #include <netdb.h>
> + #include <unistd.h>
> ++#include <fcntl.h>
> +
> + #include "tftpsubs.h"  /* for mysignal() */
> +
> +--
> +2.14.1
> +
> diff --git a/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp_0.17.bb b/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp_0.17.bb
> index 67a541d25..92c13e850 100644
> --- a/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp_0.17.bb
> +++ b/meta-networking/recipes-netkit/netkit-tftp/netkit-tftp_0.17.bb
> @@ -6,9 +6,10 @@ DEPENDS = "tcp-wrappers"
>   LIC_FILES_CHKSUM = "file://tftp/tftp.c;beginline=2;endline=3;md5=84d2cfe1e60863a7d82648734ba4d30c"
>   
>   SRC_URI = "${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}.orig.tar.gz;name=archive \
> -    ${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}-18.diff.gz;name=patch18 \
> -    file://tftp.conf \
> -"
> +           ${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}-18.diff.gz;name=patch18 \
> +           file://tftp.conf \
> +           file://0001-tftp-Include-missing-fcntl.h.patch \
> +           "
>   
>   SRC_URI[archive.md5sum] = "b7262c798e2ff50e29c2ff50dfd8d6a8"
>   SRC_URI[archive.sha256sum] = "3a43c0010d4e61f412563fd83769d4667d8b8e82903526d21cb9205fe55ad14d"




More information about the Openembedded-devel mailing list