瀏覽代碼

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

Guillem Jover 9 年之前
父節點
當前提交
7ec5982445
共有 2 個文件被更改,包括 3 次插入0 次删除
  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 *