- fix building with gcc 4.3 which requires #including *everything* that's used
authorPanu Matilainen <pmatilai@turre.koti.laiskiainen.org>
Tue, 24 Apr 2007 09:07:53 +0000 (12:07 +0300)
committerPanu Matilainen <pmatilai@turre.koti.laiskiainen.org>
Tue, 24 Apr 2007 09:07:53 +0000 (12:07 +0300)
  (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417488)

apt-pkg/contrib/cdromutl.cc
apt-pkg/contrib/fileutl.cc
apt-pkg/init.cc

index e28bb19..6d3da1f 100644 (file)
@@ -34,6 +34,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <stdlib.h>
                                                                        /*}}}*/
 
 // IsMounted - Returns true if the mount point is mounted              /*{{{*/
index 31b053c..bb69957 100644 (file)
@@ -21,6 +21,7 @@
 #include <apt-pkg/error.h>
 #include <apt-pkg/sptr.h>
 
+#include <cstdlib>
 #include <iostream>
 #include <unistd.h>
 #include <fcntl.h>
index 88c2e12..f2232c4 100644 (file)
@@ -12,6 +12,7 @@
 #include <apt-pkg/fileutl.h>
 #include <apt-pkg/error.h>
 
+#include <cstdlib>
 #include <apti18n.h>
 #include <config.h>
 #include <sys/stat.h>