From 1985f8ea334f64e3832536001cf3100bf8008dc4 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 10 Jan 2018 20:14:08 +0100 Subject: [PATCH] ifstatus: fix build --- srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc6.patch | 14 ++++++++++++++ srcpkgs/ifstatus/template | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc6.patch diff --git a/srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc6.patch b/srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc6.patch new file mode 100644 index 00000000000..760a09fbf2c --- /dev/null +++ b/srcpkgs/ifstatus/patches/ifstatus-1.1.0-gcc6.patch @@ -0,0 +1,14 @@ +--- a/Interface.h ++++ b/Interface.h +@@ -57,7 +57,11 @@ + + InterfaceData & operator=(InterfaceData & rInterfaceData); + InterfaceData operator-(InterfaceData & rInterfaceData); + ++#if __cplusplus >= 201103L ++ InterfaceData & operator=(InterfaceData && rInterfaceData) = default; ++ InterfaceData(const InterfaceData&) = default; ++#endif + private: + + unsigned long long m_ullReceived[eTotalTypes]; diff --git a/srcpkgs/ifstatus/template b/srcpkgs/ifstatus/template index a35a6bed80e..4cca59e2339 100644 --- a/srcpkgs/ifstatus/template +++ b/srcpkgs/ifstatus/template @@ -1,7 +1,7 @@ # Template file for 'ifstatus' pkgname=ifstatus version=1.1.0 -revision=1 +revision=2 wrksrc=ifstatus build_style=gnu-makefile patch_args="-Np1"