* [ptxdist] [PATCH] Added patch to allow compiling ifplugd-0.28 using GCC10 (i.e. OSELAS.Toolchain 2020.08.0)
@ 2021-01-24 9:51 flix.ptxdist
2021-01-25 7:17 ` Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: flix.ptxdist @ 2021-01-24 9:51 UTC (permalink / raw)
To: ptxdist; +Cc: Felix Mellmann, Felix Mellmann
From: Felix Mellmann <flix@benfm.de>
Signed-off-by: Felix Mellmann <flix.ptxdist@benfm.de>
---
.../ifplugd-0.28/fix-GCC10-compatibility.patch | 15 +++++++++++++++
patches/ifplugd-0.28/series | 1 +
2 files changed, 16 insertions(+)
create mode 100644 patches/ifplugd-0.28/fix-GCC10-compatibility.patch
diff --git a/patches/ifplugd-0.28/fix-GCC10-compatibility.patch b/patches/ifplugd-0.28/fix-GCC10-compatibility.patch
new file mode 100644
index 000000000..d27657f2f
--- /dev/null
+++ b/patches/ifplugd-0.28/fix-GCC10-compatibility.patch
@@ -0,0 +1,15 @@
+Index: ifplugd-0.28/src/interface.h
+===================================================================
+--- ifplugd-0.28.orig/src/interface.h
++++ ifplugd-0.28/src/interface.h
+@@ -21,8 +21,8 @@
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+-int interface_auto_up;
+-int interface_do_message;
++extern int interface_auto_up;
++extern int interface_do_message;
+
+ typedef enum { IFSTATUS_UP, IFSTATUS_DOWN, IFSTATUS_ERR } interface_status_t;
+
diff --git a/patches/ifplugd-0.28/series b/patches/ifplugd-0.28/series
index f093c5e62..1b2f70e44 100644
--- a/patches/ifplugd-0.28/series
+++ b/patches/ifplugd-0.28/series
@@ -1 +1,2 @@
ifplugd-fix-include.diff
+fix-GCC10-compatibility.patch
--
2.25.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [PATCH] Added patch to allow compiling ifplugd-0.28 using GCC10 (i.e. OSELAS.Toolchain 2020.08.0)
2021-01-24 9:51 [ptxdist] [PATCH] Added patch to allow compiling ifplugd-0.28 using GCC10 (i.e. OSELAS.Toolchain 2020.08.0) flix.ptxdist
@ 2021-01-25 7:17 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-01-25 7:17 UTC (permalink / raw)
To: ptxdist; +Cc: Felix Mellmann
On Sun, Jan 24, 2021 at 10:51:13AM +0100, flix.ptxdist@benfm.de wrote:
> From: Felix Mellmann <flix@benfm.de>
>
> Signed-off-by: Felix Mellmann <flix.ptxdist@benfm.de>
> ---
> .../ifplugd-0.28/fix-GCC10-compatibility.patch | 15 +++++++++++++++
> patches/ifplugd-0.28/series | 1 +
> 2 files changed, 16 insertions(+)
> create mode 100644 patches/ifplugd-0.28/fix-GCC10-compatibility.patch
>
> diff --git a/patches/ifplugd-0.28/fix-GCC10-compatibility.patch b/patches/ifplugd-0.28/fix-GCC10-compatibility.patch
> new file mode 100644
> index 000000000..d27657f2f
> --- /dev/null
> +++ b/patches/ifplugd-0.28/fix-GCC10-compatibility.patch
> @@ -0,0 +1,15 @@
Please create a patch with a proper patch header. PTXdist[1] can help you
do that.
Michael
[1] https://www.ptxdist.org/doc/dev_add_new_pkgs.html#using-git
> +Index: ifplugd-0.28/src/interface.h
> +===================================================================
> +--- ifplugd-0.28.orig/src/interface.h
> ++++ ifplugd-0.28/src/interface.h
> +@@ -21,8 +21,8 @@
> + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
> + */
> +
> +-int interface_auto_up;
> +-int interface_do_message;
> ++extern int interface_auto_up;
> ++extern int interface_do_message;
> +
> + typedef enum { IFSTATUS_UP, IFSTATUS_DOWN, IFSTATUS_ERR } interface_status_t;
> +
> diff --git a/patches/ifplugd-0.28/series b/patches/ifplugd-0.28/series
> index f093c5e62..1b2f70e44 100644
> --- a/patches/ifplugd-0.28/series
> +++ b/patches/ifplugd-0.28/series
> @@ -1 +1,2 @@
> ifplugd-fix-include.diff
> +fix-GCC10-compatibility.patch
> --
> 2.25.1
>
>
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-25 7:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24 9:51 [ptxdist] [PATCH] Added patch to allow compiling ifplugd-0.28 using GCC10 (i.e. OSELAS.Toolchain 2020.08.0) flix.ptxdist
2021-01-25 7:17 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox