net-analyzer/ifstatus: Fix building with GCC-6
authorPeter Levine <plevine457@gmail.com>
Fri, 12 May 2017 08:54:17 +0000 (04:54 -0400)
committerDavid Seifert <soap@gentoo.org>
Sat, 13 May 2017 12:58:48 +0000 (14:58 +0200)
Bug: https://bugs.gentoo.org/show_bug.cgi?id=618234
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4610

net-analyzer/ifstatus/files/ifstatus-1.1.0-gcc6.patch

index 96402cb71b8e3f9ba188dcd50c99364acf10050f..760a09fbf2c66caae44078adf2c7ab2341255df5 100644 (file)
@@ -1,12 +1,14 @@
 --- a/Interface.h
 +++ b/Interface.h
-@@ -57,7 +57,8 @@
+@@ -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];