Browse Source

dselect: Include missing <new> for new and delete operator declarations

Guillem Jover 7 years ago
parent
commit
7ec5982445
2 changed files with 3 additions and 0 deletions
  1. 1 0
      debian/changelog
  2. 2 0
      dselect/cxx-support.cc

+ 1 - 0
debian/changelog

@@ -45,6 +45,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
   * Implement local abi::__cxa_pure_virtual. When using g++ if we provide our
     version of this function we can avoid the dependency on either libstdc++
     or libsup++.
+  * Include missing <new> for new and delete operator declarations.
   * Architecture support:
     - Add support for AIX operating system.
   * Portability:

+ 2 - 0
dselect/cxx-support.cc

@@ -30,6 +30,8 @@
 #include <cxxabi.h>
 #endif
 
+#include <new>
+
 #include <dpkg/dpkg.h>
 
 extern void *