Petter Reinholdtsen wrote:
> Package: readahead
> Version: 1:1.20060421.1016-1
> 
> I found this patch in Ubuntu with a comment stating that it "Fix build
> failure with g++-4.3".  It sound like a fix we want in the Debian
> package too.  I'm not sure if it is needed, so I put it in BTS for
> review.
> 
> diff -pruN 1:0.20050517.0220-1/src/filelist-order.cxx 
> 1:0.20050517.0220-0ubuntu12/src/filelist-order.cxx
> --- 1:0.20050517.0220-1/src/filelist-order.cxx        2005-05-17 
> 03:12:43.000000000 +0100
> +++ 1:0.20050517.0220-0ubuntu12/src/filelist-order.cxx        2008-01-24 
> 14:12:06.000000000 +0000
> @@ -19,6 +19,7 @@
>  #include <iostream>
>  #include <fstream>
>  #include <vector>
> +#include <cstdlib>
>  
>  #include <assert.h>
>  #include <string.h>
> 
> Happy hacking,
We already have this patch, which should do the same:

Fix build problem with gcc 4.3, making sure exit() is visible.
Solve bug #462552.

--- readahead-list-0.20050517.0220.orig/src/filelist-order.cxx
+++ readahead-list-0.20050517.0220/src/filelist-order.cxx
@@ -25,6 +25,7 @@
 #include <getopt.h>

 #include <unistd.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>

-- 
Julian Andres Klode, Fellow of the Free Software Foundation Europe
                     Debian Maintainer | Developer | Ubuntu Member

try Debian: http://www.debian.org/ | my site: http://jak-linux.org/
        jabber: [EMAIL PROTECTED] | IRC: juliank (FreeNode, OFTC)
            languages:     German  | English

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to